Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1175413
    btcreative
    Participant

    Trying to figure out how to set up a header image and remove title bar per page. I’d like to use different background for each title. Using X child theme/ renew.Thanks!

    #1175648
    Jade
    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.

    #1175920
    btcreative
    Participant
    This reply has been marked as private.
    #1176218
    Lely
    Moderator

    Hi There,

    To remove title bar per page, under Page Settings > Disable Page Title: Check this.
    Add featured image on your page. Then add the following code on your child theme’s functions.php file:

    function page_featured_image() {
       if (is_page() ): ?>
       <style>
       .x-header-landmark{
        background: url(<?php echo the_post_thumbnail_url('entry'); ?>);
    	background-size: cover;
        }
       </style>
     <?php	
    endif; 
    }
    
    add_action('x_before_site_begin', 'page_featured_image');

    That code will add background on your page title bar. If you disable the Page title, it will not work.

    Hope this helps.

    #1177079
    btcreative
    Participant

    I was able to add this code, but where will the feature be located at per page to add the background title/header bar?

    #1177331
    Jade
    Moderator

    Hi there,

    The background image should be on the area where the page title is but kindly make sure you have set a featured image to the page.

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