Make HTML widget appear on specific URLs
3 posters
Page 1 of 1
Make HTML widget appear on specific URLs
Respected sir,
I have a HTML widget installed in my sidebar; which I want to appear only on a specific URL; so is there any coding block that I envelop my widget code within it such that my widget appears only on a specific URL page.
For blogger there were many
I have a HTML widget installed in my sidebar; which I want to appear only on a specific URL; so is there any coding block that I envelop my widget code within it such that my widget appears only on a specific URL page.
For blogger there were many
- Code:
</b:if>
Re: Make HTML widget appear on specific URLs
Theres not a forumotion tool for this apart from only showing a widget to a certain group eg. member, guest admin ect.
Your best get is to find some javascript code that will check the url for certain parts and only display if there is. Try Google
Thanks,
Ben
Your best get is to find some javascript code that will check the url for certain parts and only display if there is. Try Google
Thanks,
Ben
Re: Make HTML widget appear on specific URLs
I am tired of looking; is Sir. BASE there he could atleast giv me a definite answer...
Re: Make HTML widget appear on specific URLs
Hmm so you want it like that.
if the the url is https://help.forumotion.com/forum then widget will be shown and e.g if its https://help.forumotion.com/groups then it will be hidden (:
if the the url is https://help.forumotion.com/forum then widget will be shown and e.g if its https://help.forumotion.com/groups then it will be hidden (:
Re: Make HTML widget appear on specific URLs
yes....i want a widget only appear at my homepage...sort of tutorial widget which isn't needed always; just at homepage
Re: Make HTML widget appear on specific URLs
Homepage = Forum index? (:
Give your widget a class or an ID (: and hide it with CSS
and try use this jQuery code:
and try add this code to your CSS:
Give your widget a class or an ID (: and hide it with CSS
- Code:
.widget class name {display: none;}
and try use this jQuery code:
- Code:
<script>jQuery(document).ready(function(){
if (location.pathname=='/forum') {jQuery(function() {jQuery('.WIDGET CLASS NAME').addClass("widget-active");});};});
</script>
and try add this code to your CSS:
- Code:
.widget-active {display: block !important;}
Similar topics
» make a html for widget
» HTML code similar to External Widget but for AD widget instead?
» How do I make someone or a specific group in charge of a specific forum/category?
» urls in html
» Custom HTML Page URLs
» HTML code similar to External Widget but for AD widget instead?
» How do I make someone or a specific group in charge of a specific forum/category?
» urls in html
» Custom HTML Page URLs
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum