Remove background colour on homepage article only.

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Fri Jul 19, 2013 8:04 am
Reply with quote
Report this post
Hello there,
I'd like to remove the background colour for the article on the home page only.
Currently I have an GK4 Image Show module assigned to the mainbody position, and there is a white border which I want to get rid of. The white border is the background colour showing through.

How can I make it so that the mainbody position, for the homepage only, has no background colour defined?

The site in question is here >> http://www.melbmartialarts.com.au/

Many thanks, John :D
User avatar
Junior Boarder

GK User
Fri Jul 19, 2013 8:50 am
Reply with quote
Report this post
The easiest way is to use suffix for pages option. Please look at this article >> http://www.gavick.com/documentation/general-questions/how-to-disable-content-on-selected-joomla-pages/ the idea is the same - use suffix and add code only for one page.
User avatar
Platinum Boarder

GK User
Fri Jul 19, 2013 8:52 am
Reply with quote
Report this post
Thanks so much for the SUPER quick reply! I'll check out the article now. :)
User avatar
Junior Boarder

GK User
Fri Jul 19, 2013 9:42 am
Reply with quote
Report this post
Hi there,
I added a noMainbody suffix in the Template Manager to the menu item (#637) as well as the article item (#80).
I then added this code to override.css

Code: Select all
.noMainbody #gkMainbody { display: none !important}


I then checked my source code and I can see that the class noMainbody is now present, but the mainbody position/article is still showing.

Any suggestions?
User avatar
Junior Boarder

GK User
Fri Jul 19, 2013 9:50 am
Reply with quote
Report this post
Success! :laugh:

The instructions on this page were incorrect (for me anyway) http://www.gavick.com/documentation/general-questions/how-to-disable-content-on-selected-joomla-pages/

When I inspected the code on my page I saw that the mainbody had a class of gkContent
So I changed my override.css code to :

Code: Select all
.noMainbody #gkContent {display: none !important}


And now the mainbody is hidden! :D

Thanks for pointing me in the right direction. Although perhaps Gavick can update that page, to assist others in the future.

As always, thank you.
User avatar
Junior Boarder

GK User
Mon Jul 22, 2013 10:02 am
Reply with quote
Report this post
Place where suffix os added depends of framework version but of course we will update the wiki article.
User avatar
Platinum Boarder


cron