Register Templates as Global

  • Author
    Posts
  • #56503

    iamchrisone
    Participant

    Hi there,

    Congratulations and thank you for the awesome theme. I’m wondering if you could point me in the right direction? I want to register the various Septera page templates for Global use as per link below. This is to allow me to use a a particular template with the Events calendar Plugin. https://developer.wordpress.org/themes/template-files-section/page-template-files/#creating-custom-page-templates-for-global-use

    regards,
    Chris.

    #56656

    zed
    Keymaster

    Septera does not include any page templates. What are you looking to do?


    If you like our creations, please rate them on WordPress.org.
    #56695

    iamchrisone
    Participant

    Hi Zed,

    Thanks for getting back to me. So you found me out. I am a complete novice at this. What I’m trying to do is use the various Septera page layouts (eg. two columns sidebar on left, two columns sidebar on right, three columns sidebars either side) for Blog, Portfolio, Testimonial and Event Calendar Plugin pages. These pages pickup the default Septera layout. Is there a way to select which layout these pages use? Could you point me in the right direction?

    Cheers,
    Chris.

    Website: www.scottishmultisport.co.uk

    #56863

    zed
    Keymaster

    If those sections are plain static pages, then the layout option should be available for them. Is the meta option not displayed while editing the page(s)?


    If you like our creations, please rate them on WordPress.org.
    #56966

    iamchrisone
    Participant

    Hey Zed,

    Thanks for following up. I think my challenge here is that it’s not a static page. There is no editor.

    Would you be able to point me in the right direction for forcing non-static pages such as the blog page and this events page to use specific layouts?

    Same goes for portfolio pages. The meta box isn;t available for those either.

    Cheers,
    Chris.

    #56967

    iamchrisone
    Participant

    Hey Zed,

    I was just digging through some of the code. Would adding somehting like this to my functions.php have the desired effect?

    function septera_force_layout_class() {
    if( ‘custom-post-type-name’ == get_post_type() ) {
    $septera_sitelayout = “two-columns-left”;
    }
    }

    Cheers,
    Chris.

    #57103

    zed
    Keymaster

    You’ll need to customize both the septera_get_sidebar() and septera_get_layout_class() functions (copy their code from core.php) to perform the extra post type checks before picking the layout.


    If you like our creations, please rate them on WordPress.org.
Viewing 7 posts - 1 through 7 (of 7 total)

You need to log in to reply to this topic.