Forum Widget Only Show in Home Page
3 posters
Page 1 of 1
Forum Widget Only Show in Home Page
hello, i want to show forum widget ONLY in home page. can i do it? thanks anyway
Re: Forum Widget Only Show in Home Page
Add this to your stylesheet :
Display > Colors > CSS stylesheet
and this to your homepage message :
Display > Generalities
Display > Colors > CSS stylesheet
- Code:
#right { display:none }
#content-container div#content { margin-right:0 }
and this to your homepage message :
Display > Generalities
- Code:
<style type="text/css">#right { display:block }
#content-container div#content { margin-right:183px }</style>
Re: Forum Widget Only Show in Home Page
Add this to your stylesheet to hide the homepage message :
- Code:
#pun-announcement { display:none }
Re: Forum Widget Only Show in Home Page
it's work, but that's way make mess my homepage.
do you have alternative way to use javascript?
Re: Forum Widget Only Show in Home Page
Hello @kumotta,
I will use Ange Tueur's CSS codes assuming they work as intended in punBB forum. So, after using his 1st part of CSS code in your CSS stylesheet, your widgets are hidden from all pages. To unhide it just for homepage you can use something like this:
I did not test it out, but the concept is there. Try and tell me how it went. If it doesn't work, please give me the URL of your forum too (I suspect the one that is in your profile is not the same forum as the one in screenshots you have provided here).
P.S. Put the code in Modules -> Javascript Management and tick only at homepage.
I will use Ange Tueur's CSS codes assuming they work as intended in punBB forum. So, after using his 1st part of CSS code in your CSS stylesheet, your widgets are hidden from all pages. To unhide it just for homepage you can use something like this:
- Code:
$(document).ready(function() {
if ($(location).attr('href') == "URL_of_your_forum_homepage_goes_here") {
$('#right').css('display','block');
$('#content-container div#content').css('margin-right','183px');
}
});
I did not test it out, but the concept is there. Try and tell me how it went. If it doesn't work, please give me the URL of your forum too (I suspect the one that is in your profile is not the same forum as the one in screenshots you have provided here).
P.S. Put the code in Modules -> Javascript Management and tick only at homepage.
Re: Forum Widget Only Show in Home Page
Try increasing the right margin in the homepage message.
I can't exactly give you a surefire code since you haven't provided your forum URL.
- Code:
<style type="text/css">#right { display:block }
#content-container div#content { margin-right:183px }</style>
I can't exactly give you a surefire code since you haven't provided your forum URL.
Similar topics
» How to show latest topic on home page of my forum
» Show threads on home page
» Forum home page loads too slow
» Attached Forum appears in home page
» Forum Locked Icon at bottom of home page
» Show threads on home page
» Forum home page loads too slow
» Attached Forum appears in home page
» Forum Locked Icon at bottom of home page
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum