This topic has 9 replies, 2 voices, and was last updated 8 years by Laura.

  • Author
  • #102661
     investa
    Participant

    Hi, is it possible to attach the news ticker tape beneath the header so it appears on all pages?

    #102986
     Laura
    Moderator

    Hello, you could add it to header.php
    using do_shortcode

    COPY CODE
    
    echo do_shortcode( '[kleo_news_ticker posts_query="size:10|order_by:date|post_type:post"]' );
    

    You can change the shortcode for the one you use

    This should be at header.php ( copy the original at main theme and paste it at child theme )
    at the very end of the file.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #103366
     investa
    Participant

    Hi Laura, thank you very much for the code. It worked perfectly on all my pages (see png 1) except the home page, where it appears at the very top and blocks out the site name (see png. 2). Is it possible to exclude the home page?

    Attachments:
    You must be logged in to view attached files.
    #103724
     Laura
    Moderator

    Hello, please try adding the following css to style.css

    COPY CODE
    
    .home .ticker {
        display: none;
    }
    

    And replace the header code with this one

    COPY CODE
    
    <div class="ticker">
    echo do_shortcode( '[kleo_news_ticker posts_query="size:10|order_by:date|post_type:post"]' );
    </div>
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #103752
     investa
    Participant

    Hi Laura, under header ‘MAIN SECTION’ – if I put code before final ?> it creates a 500 error. Am I putting it in the right place?

    #103998
     Laura
    Moderator

    Hello sorry, try this instead

    COPY CODE
    
    <div class="ticker">
    <?php echo do_shortcode( '[kleo_news_ticker posts_query="size:10|order_by:date|post_type:post"]' ); ?>
    </div>
    

    Replace the first code i sent you with this one, at the same place
    If not working please share ftp

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #104395
     investa
    Participant
    This reply has been set as private.
    #104569
     Laura
    Moderator

    Hello, fixed, please check attachments

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    Attachments:
    You must be logged in to view attached files.
    #104878
     investa
    Participant

    Ah! Makes sense now I’ve seen it … I was the section down! Thanks again for preserving to solve this for me.

    #105022
     Laura
    Moderator

    Glad it worked 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

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

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?