Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • in reply to: Rotating Headerbanner #111293
     touren
    Participant

    Thank you soooooo much!!

    with

    COPY CODE
    if (!is_front_page() && !is_page('8175') && !is_page('8121') && !is_page('7344')){
    putRevSlider('headerbanner');
    }

    everything is working fine now! I also tried

    COPY CODE
    if ( !is_front_page() ) {
            if ( !is_page('8175','8121','7344') ) {
                putRevSlider('headerbanner');
            }
        }

    but this does not work!

    thank you so much for your great support!

    in reply to: Rotating Headerbanner #111269
     touren
    Participant

    hi sharmstr,

    thank you very much – it was my mistake – I messed up the code when I integrated it in my child theme.
    now it works with

    COPY CODE
    if (!is_front_page() && !is_page('8175') ){
    putRevSlider('headerbanner');
    }

    when I want to exclude more pages like this

    COPY CODE
    if (!is_front_page() && !is_page('8175,8121,7344') ){
    putRevSlider('headerbanner');
    }

    it does not work I have to use it then this way
    ##

    COPY CODE
    if (!is_front_page() && !is_page('8175') && !is_page('8121') && !is_page('7344')){
    putRevSlider('headerbanner');
    }

    is there a smarter way to exclude more pages?

    in reply to: Rotating Headerbanner #110970
     touren
    Participant

    Works great! I want to do little modification!

    I have used now this code

    COPY CODE
    add_action('kleo_before_main', 'inject_slider', 10);
    function inject_slider() {
        putRevSlider('headerbanner');
    }

    so that the banner is inserted on every page

    how can I exclude injection on homepage and how can I use on my page ID 8175putRevSlider(‘contentbannerbig’); instead of putRevSlider(‘headerbanner’);

    how do I have to extend the code above?

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

Log in with your credentials

Forgot your details?