This topic has 1 reply, 2 voices, and was last updated 9 years by sharmstr.

  • Author
  • #69201
     Jsb828Be
    Participant

    Hi,

    Right now, there is an option to add header and bottom content to a page. I would like to know if this option is able to be set to globally, so that this field shows up on every page.

    #69254
     sharmstr
    Moderator

    Not by default, but you can use add_action in your childs functions.php to do it. Edit as necessary.

    COPY CODE
    
    /***************************************************
    :: Add custom HTML to page header
     ***************************************************/
    
    add_action( 'kleo_before_main', 'kleo_global_header_content', 8 );
    
    function kleo_global_header_content() {
        echo '<section class="kleo-page-header container-wrap main-color">';
        echo "Add whatever you want here.";
        echo '</section>';
    }
    
    /***************************************************
    :: Add custom HTML to bottom page
     ***************************************************/
    
    add_action( 'kleo_after_main_content', 'kleo_global_bottom_content', 12 );
    
    function kleo_global_bottom_content() {
          echo '<div class="kleo-page-bottom">';
          echo "Add whatever you want here.";
          echo '</div>';
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘KLEO’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?