WordPress.org

Ready to get started?Download WordPress

Forums

Path
[resolved] "Layout" custom meta box name (6 posts)

  1. villarroel
    Member
    Posted 1 year ago #

    Hi,

    I'm using your Path theme and am very happy with it.

    I've started using the TurboCSV plugin to upload pages in bulk. It works well and detects most of the page elements that I need to populate. However, it doesn't detect the Layout section (the bit that defines where the sidebar goes "Two Columns, Left" etc). The developer for TurboCSV says that I would need to contact you to ask what the name of this custom meta box is (so it can be mapped). Does any of this make sense?

    Thanks in advance.

  2. Sami Keijonen
    WordPress-asiantuntija
    Theme Author

    Posted 1 year ago #

    Hi.

    It's id is theme-layouts-post-meta-box. Let me know if that's not what you need.

    But then again, I think you get default layout when importing pages anyway.

  3. villarroel
    Member
    Posted 1 year ago #

    Hi Sami,

    Thank you for your quick reply!

    However, I think I did ask for the wrong thing. Apologies :-s Here is what the developer of the plugin says:

    "What you need to know is where the selected layout value is saved.

    The value is probably saved in either a custom field or a taxonomy. You’ll need to know the custom field name, or the taxonomy name and allowed term values."

    Does that make sense to you?

    Many thanks

  4. Sami Keijonen
    WordPress-asiantuntija
    Theme Author

    Posted 1 year ago #

    It's not that simple and Path is about to have important update how global layout is gonna work. I've removed global layout from theme settings and now it comes only from WP customize. Name is theme_layout. Basically you can find all the info in here.

    https://github.com/justintadlock/hybrid-core/blob/master/extensions/theme-layouts.php

    You can naturally overwrite that global layout in every post/page. But I still don't understand where you need that info.

  5. villarroel
    Member
    Posted 1 year ago #

    Thank you for your help!

    We've got it working now, which is great.

    For anyone else that needs to know, the values are:

    'default' => __( 'Default', 'theme-layouts' ),
    '1c' => __( 'One Column', 'theme-layouts' ),
    '2c-l' => __( 'Two Columns, Left', 'theme-layouts' ),
    '2c-r' => __( 'Two Columns, Right', 'theme-layouts' ),
    '3c-l' => __( 'Three Columns, Left', 'theme-layouts' ),
    '3c-r' => __( 'Three Columns, Right', 'theme-layouts' ),

    Thanks!

  6. Sami Keijonen
    WordPress-asiantuntija
    Theme Author

    Posted 1 year ago #

    :) Sorry, if I knew you only needed those, I would have gave it to you right a way.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.