• What I want to achieve is when I click any brand name at the brands sidebar, the brand name will change color to red. Is it possible?I already put an CSS ‘a:active’ for the a element but not working. Is there anyways to make the brand name change color. I really stuck here

    Thanks.

    • This topic was modified 4 years, 7 months ago by adsmunch.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author RazyRx

    (@razyrx)

    Hello @adsmunch,

    Plugin do not have feature like this.

    ‘a:active’ do not help, because it work only before redirect, but after load new page it is not active.
    The only way to do it is using custom code that will detect current page and add some class to brand with this page.

    Regards,
    Oleg

    Thread Starter adsmunch

    (@adsmunch)

    I already try to use a custom code but still not working..Maybe something wrong with my code.. Can you help me with this issue.. I really stuck here.. Is it the code something like this?

    if( is_page(‘/brands/analytical-technology-ati/’) ) {
    echo ‘<div class=”br_widget_brand_element active” style=”width:’, ($width – 1), ‘%;float:left;margin-right: 1%;”>’;
    echo $brand_link_html;
    echo ‘</div>’;
    }

    Plugin Author RazyRx

    (@razyrx)

    Hello @adsmunch,

    Do not know where you are trying to place it, but it seems correct only for single brand ‘/brands/analytical-technology-ati/’.
    You need to get current page and then check with page on brand list element.

    Regards,
    Oleg

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Brand name color not changing when active’ is closed to new replies.