Page template - get_header not working

Home Forums Jevelin Theme Page template – get_header not working

Home Forums Jevelin Theme Page template – get_header not working

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • miky158
    Participant

    Hi,

    Hope this is my last question. I installed a plugin which manages calendars. When a single event page loads, the method get_header do not loads the right header used as primary header into the theme options.

    I selected header-4 for all my pages, but the event slug page keeps loading the header-1 template.

     

    I tried also changing the get_header method with the get_template_part() method, but it loads two headers. Is there a template file I can use to create single-page templates?

     

    Thank you in advance,

    BR.

    Hi @miky158,

     

    I hope you are well today and thank you for your question.

     

    Which layout to display on which pages are managed by the following theme function jevelin_header_layout added in the theme file /jevelin/inc/helpers.php on line number 570 so you can edit it in the Jevelin child theme to display appropriate headers.

     

    function jevelin_header_layout() {
        $header_layout1 = esc_attr( jevelin_post_option( jevelin_page_id(), 'header_layout', '1' ) );
        $header_layout2 = esc_attr( jevelin_option( 'header_layout', '1' ) );
    
        if( !is_search() && !is_singular('product') && !is_archive() && !is_home() && !is_404() ) :
    	return ( isset($header_layout1) && $header_layout1 && $header_layout1 != 'default' ) ? $header_layout1 : ( ( isset($header_layout2) && $header_layout2 ) ? $header_layout2 : '1' );
        else :
    	return $header_layout2;
        endif;
    
    }

     

    Best regards,
    Shufflehound team

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

Popular choice

Professional Developers At Your Fingertips!

If you need services beyond standard support, we've got your back!

Services we offer:

Demo setup
Advanced customization
Layout adjustment
Graphic work / visualizations
Custom coding
Full WordPress development and design

Services

What we can offer

  • Demo setup +

    If you'd prefer not to handle the installation yourself or need help getting started, we'll set everything up for you.

  • Layout adjustment +

    We'll help you rearrange sections, adjust spacing, and modify the page structure to fit your needs.

  • Advanced customization +

    More complex styling changes, theme option modifications, and third-party integrations.

  • Custom coding +

    If you need something that's not included in the theme, we can code it for you.

  • Graphic work / visualizations +

    Web design services to create custom sections, pages, and blocks for your theme, plus graphics and visualizations.

  • Full WordPress development and design +

    Full website builds, custom theme development, or plugin creation from scratch.

  • About pricing +

    We'll provide a clear quote based on what you need. No hidden fees.

Professional Developers At Your Fingertips!

Custom Work Form