Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1205857
    Forson
    Participant

    Helllo

    How can I set up an an image below Blog headtitle? I mean a static image that will be visible above both columns (posts and left blog navbar)

    Site link – http://kancelaria-hildebrand.pl/blog/

    #1206220
    Friech
    Moderator

    Hi There,

    Thanks for writing in! 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_banner() { 
     if(is_home()): ?>
        <div class="custom-banner">
          <div class="x-container max width">
           <img class="x-img" src="REPLACE THIS WITH YOUR ACTUAL IMAGE URL" alt="banner" />
          </div>
        </div>
      <?php endif; 
    }
    add_action('x_after_view_integrity__landmark-header','custom_banner', 30);

    Let us know how it goes.

    Cheers!

    #1210364
    Forson
    Participant

    Hi

    Thx for advise. One more question (still can’t decide how I want my blog page to look like ;p ). How can I make a custom section on top of left blog menu. I want to make section with picture and short note about author above search field.

    #1210502
    Jade
    Moderator

    Hi there,

    You could use custom sidebars for this setup.

    You can find more info here : https://community.theme.co/forums/topic/sidebar-on-blog-pages/

    Hope this helps.

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