Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1286512
    Dave
    Participant

    I’m trying to add a full width image on my main blog page and individual blog posts as a page title. I’ve read through all the topics on this and have tried the css and javascript suggestions to no avail.
    Also, I have the main sidebar active on the blog page but would love to be able to align the top of the sidebar to the bottom of the menu. Right now it starts at the top of the screen. Not sure if I can change that.
    Any help would be appreciated.

    #1286546
    Nabeel A
    Moderator

    Hi there,

    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.

    #1286558
    Dave
    Participant
    This reply has been marked as private.
    #1286738
    Friech
    Moderator

    Hi There,

    Please add this on your child theme’s functions.php file.

    function custom_banner() { 
     if(is_home() || is_single()): ?>
        <div class="custom-banner">
          <div class="x-container">
           <img class="x-img" src="YOUR IMAGE URL HERE" alt="banner" />
          </div>
        </div>
      <?php endif; 
    }
    add_action('x_after_view_icon__breadcrumbs','custom_banner', 30);

    Replace the YOUR IMAGE URL HERE with your actual banner URL.

    To make your ROW fullwidth, please turn off the Column Container option.


    screenshot

    Hope it helps, Cheers!

    #1287384
    Dave
    Participant

    I really appreciate the information and have the header added.
    As far as the fullwidth option, it looks like your instructions are using Cornerstone to make the change but I don’t see how to use Cornerstone with the Blog page.
    Thanks!

    #1287570
    Jade
    Moderator

    Hi there,

    Please try to add this code:

    .blog .post .x-container.max {
        max-width: 95%;
        margin-left: 0;
    }

    Hope this helps.

    #1287713
    Dave
    Participant

    That’s giving a
    Parse error: syntax error, unexpected ‘.’
    from that first line.
    Sorry I should be able to fix that but don’t know how.

    #1288001
    Friech
    Moderator

    Hi There,

    Sorry about that, that code is a CSS so it should go under Global Custom > CSS in the Customizer.

    Thanks.

    #1288374
    Dave
    Participant

    I should have noticed that. Thank you!

    #1288380
    Thai
    Moderator

    If you need anything else please let us know.

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