widget show only in homepage

Go down

Solved widget show only in homepage

Post by tommycoo on April 12th 2013, 4:53 pm

is this possible to make widget to show only in homepage ?
avatar
tommycoo
Forumember

Male Posts : 615
Reputation : 9
Language : Indonesia

http://www.atlanta.forumid.net

Back to top Go down

Solved Re: widget show only in homepage

Post by Jophy on April 12th 2013, 5:17 pm

Hello,

Which do you mean homepage? An HTML homepage, the index, or the portal?
avatar
Jophy
ForumGuru

Male Posts : 17924
Reputation : 835
Language : English
Location : Somewhere

Back to top Go down

Solved Re: widget show only in homepage

Post by tommycoo on April 13th 2013, 1:29 am

index forum i mean
avatar
tommycoo
Forumember

Male Posts : 615
Reputation : 9
Language : Indonesia

http://www.atlanta.forumid.net

Back to top Go down

Solved Re: widget show only in homepage

Post by E-Mark on April 13th 2013, 5:04 am

It's not possible with the FM options, but it can be done via CSS.
Give this a try:

Go to ACP > Display > Pictures and Colors > Colors > CSS:
- If your widget is on the right side, put this one:
Code:
#content-container div#right {
  display: none;
}
- If your widget is on the left side, put this one:
Code:
#content-container div#left {
  display: none;
}

Now go to ACP > Display > Templates > General > index_body: (Put this code at the very bottom of the index_body)
- If your widget is on the right side, put this one:
Code:
<style>
#content-container div#right {
display: inline !important;
  }
</style>
- If your widget is on the right side, put this one:
Code:
<style>
#content-container div#left {
display: inline !important;
  }
</style>

Hello


Last edited by E-Mark on April 13th 2013, 6:43 am; edited 1 time in total
avatar
E-Mark
Active Poster

Male Posts : 1389
Reputation : 164
Language : English, Tagalog
Location : Republic of the Philippines

http://coding-spot.darkbb.com/

Back to top Go down

Solved Re: widget show only in homepage

Post by tommycoo on April 13th 2013, 6:43 am

just want to tell you all, this code works very well but there is a white space there.
if u want to hide it. just add this code

Code:
#content-container div#container {
    width: auto !important;
}

Problem Solved
avatar
tommycoo
Forumember

Male Posts : 615
Reputation : 9
Language : Indonesia

http://www.atlanta.forumid.net

Back to top Go down

Solved Re: widget show only in homepage

Post by E-Mark on April 13th 2013, 6:47 am

I don't see something like that. But yeah, if anyone will use the code i posted and see something like what tommycoo said, try to use the code above Smile.
avatar
E-Mark
Active Poster

Male Posts : 1389
Reputation : 164
Language : English, Tagalog
Location : Republic of the Philippines

http://coding-spot.darkbb.com/

Back to top Go down

Solved Re: widget show only in homepage

Post by Sanket on April 13th 2013, 7:22 am

Topic Solved & Locked
avatar
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2828
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum