• Resolved ladisa

    (@ladisa)


    Hi, my name is Laura,

    I have created some Post types with the plugin “Custom Post Type UI”, but when I try to edit them, I don’t see the OceanWP Settings metabox, so I can not remove the title of the page, or put the page at 100% width.

    Looking on the internet, I found the following link, which is exactly what I need: https://docs.oceanwp.org/article/368-add-the-oceanwp-settings-metabox-in-your-custom-post-type

    But I have no idea where I have to add this code; I’m a graphic designer, and until now I’ve never developed a web with wordpress, just designing. The past week I started to create one with Elementor. I mean that my level of experience with wordpress as a developer is limited ??

    Can someone help me please?

    Thank you

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Theme Author oceanwp

    (@oceanwp)

    Hello, you need to add this code in the functions.php file of your child theme.

    Thread Starter ladisa

    (@ladisa)

    Solved!
    Thank you so much!

    Theme Author oceanwp

    (@oceanwp)

    You are most welcome ??

    Hi @ladisa, can you share how you solve it? It is strange for me, just last week i could install oceanwp and “oceanwp setting” metabox shows up fine.

    Today i tried a new instance and the metabox doesnt show up

    did you change the code in the [] bit? Yours must be unqiue to your CPT

    Hi, I was able to add the metabox to one of my custom post type (video). How would I add it to two separate post types?

    I have both a ‘video’ and ‘radio’ custom content type. Adding ‘video’ to the code shown here worked fine:

    // Your custom post type
    $types[] = ‘video’;

    Hello,

    You can use

    $types[] = 'custom-post-type1';
    $types[] = 'custom-post-type2';

    Hi Amit, thank you for the response. I am new to coding so tried the following but didn’t get it right. Can you share how the code should look with my two types being ‘video’ & ‘radio’.

    /**
    * Add the OceanWP Settings metabox in your CPT
    */
    function oceanwp_metabox( $types ) {

    // Your custom post type
    $types[] = 'video';
    $types[] = 'radio';

    // Return
    return $types;

    }
    add_filter( ‘ocean_main_metaboxes_post_types’, ‘oceanwp_metabox’, 20 );

    Hi,

    It should work. Are you using wordpress editor to add the code? Try FTP to add code to the functions.php file.

    I had been adding via ftp into the functions.php file. I started over with fresh code and then manually typed in your code edits. Worked fine. I think my issue was cutting and pasting from the email received from www.remarpro.com

    Thanks again Amit!

    YOu’re welcome!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Add the Ocean Settings Metabox in a Custom Post Type’ is closed to new replies.