Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #900753
    Sarah S
    Participant

    Hey Guys,

    I am working in the Icon theme and have a blog page as my homepage. I would like to add a welcome message above my blog posts. Pretty much just like the Blog Header that is available in the Integrity theme. Is it possible to add a Blog Header using the Icon theme?

    As always, your help is much appreciated.

    #901416
    Prasant Rai
    Moderator

    Hello Sarah,

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    Thanks.

    #902332
    Sarah S
    Participant

    Hello! The site I am working on is: http://host.rhdhosting.com/~klein/

    Thanks so much!

    #903181
    Friech
    Moderator

    Hi There,

    Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

    Then add the code below on your child theme’s functions.php file.

    /**
    Add something on the Blog index page after the slider
    */
    function custom_landmark() { 
     if(is_home()): ?>
        <div class="custom-landmark">
          <div class="x-container max width">
            <p>CUSTOM Welcome Message HERE</p>
          </div>
        </div>
      <?php endif; 
    }
    add_action('x_after_view_global__slider-below','custom_landmark', 30);

    If you’re not sure where to paste the code, just right under the:

    // Additional Functions
    // =============================================================================

    Hope it helps, Cheers!

  • <script> jQuery(function($){ $("#no-reply-900753 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>