This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Template Sync Theme Option

  • Creator
    Topic
  • #23013
    mizzinc
    Participant

    Might be stepping into unknown territory here.

    Would it be possible to add a ‘Before Header Template Sync’ theme option, that functions exactly how the Footer Sync option works?

    Understand this might sit outside general support question.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #23018
    Jason Bobich
    Keymaster

    Hi,

    Forget about the actual theme option, I’d start with trying to figure out simply a way to hook in at some point and display a custom layout. You’d have to somehow set the current WordPress global $post object to some custom template (which will be a tb_layout post) and then call themeblvd_builder_layout('any_string_here'), and then rewind the main loop back to original $post object.

    https://github.com/themeblvd/theme-blvd-layout-builder/blob/master/includes/general.php#L29

    That would be a starting point, but I’m not really sure what road this will take you down, as I didn’t build things, intending for that. But if if you look at themeblvd_builder_layout(), in theory, it could work?

    #24125
    mizzinc
    Participant

    As this section was set to a three column layout, I simply added an options section to theme options.

    • This reply was modified 5 years, 7 months ago by mizzinc.
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.