Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #893670
    Mobility
    Participant

    Hello–

    I am using ethos and would like to add in some text underneath my header but above the actual blog post area. I tried to manipulate the _landmark-header.php for ethos using some span tags, but that didn’t work. Any ideas? Thank you!

    #893672
    Mobility
    Participant
    This reply has been marked as private.
    #894685
    Friech
    Moderator

    Hi There,

    Thanks for writing! 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.

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

    function custom_landmark() { 
     if(is_home()): ?>
        <div class="custom-landmark">
          <div class="x-container max width">
            <p>SOME TEXT CONTENT HERE</p>
          </div>
        </div>
      <?php endif; 
    }
    add_action('x_before_view_ethos__landmark-header','custom_landmark', 30);

    Replace the SOME TEXT CONTENT HERE with your actual content.

    Then you can style that custom landmark with this class custom-landmark

    Hope it helps, Cheers!

    #895608
    Mobility
    Participant

    Thank you! Almost worked. Is there a way to have it fall under the Title, not above?

    See page: http://6bd.152.myftpupload.com/top-reads/

    #896462
    Christopher
    Moderator

    Hi there,

    Please add following code in Customize -> Custom -> JavaScript :

    jQuery(".blog .custom-landmark").insertAfter(".blog header.x-header-landmark.x-container.max.width");

    Hope it helps.

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