Site logo

[Resolved] Combine header and site/content container

Home Forums Support [Resolved] Combine header and site/content container

Home Forums Support Combine header and site/content container

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2401457
    webintas

    Hi there,

    I want to make a gradient background on the main area including the header and the content area. However, in order to do I need to have these two HTML-elements combined into one so I can apply the CSS to one element. Can I achieve that?

    #2401471
    David
    Staff
    Customer Support

    Hi there,

    what about adding it to the body – does that not achieve what you need ?

    If not you can wrap them using Hooks, try this PHP snippet:

    
    add_action('generate_before_header', function(){
        echo '<div class="site-wrapper">';
    },9);
    
    add_action('generate_before_footer', function(){
        echo '</div>';
    },1);
    #2401475
    webintas

    Hi David,

    Thank you!

    No, adding it to the body does not give the same. Doing that, some of the gradient background is hidden by the nav and the site footer.

    #2401712
    David
    Staff
    Customer Support

    Glad to be of help!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.