Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • yellowjersey Friend
    #192925

    Hello,

    Could someone with a bit more PHP expertise than me offer a suggestion? I am trying to change the background color of the K2 “Whats Trending Now” Categories in a mod_K2_content module depending on if the current page is the home page or not. Basically, I need something like:

    IF current page is the Joomla ‘home’ page, then apply div class=XXX, else apply div class=ABC.

    Could someone give a suggestion?

    Thanks!!

    TomC Moderator
    #515258

    In my opinion, I think this would take a whole lot of additional effort rather than simply modifying the appropriate CSS rule as/when needed.

    Otherwise, you can always put this kind of specialization request up for bid at JOOMLANCERS

    phong nam Friend
    #515362

    Hi yellowjersey,

    You can use the Page Class suffix of Joomla to display the styles of module on different menu item page.

    i.e: on homepage, the title color of module A is red, but on another page, it is blue.

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 3 voices, and was last updated by  phong nam 10 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum