• JCV

    (@psykonevro)


    Hi there,
    I’m trying to include customize the “minimal” OceanWP menu.
    I want to include in that menu an extra shortcode, and maybe include a couple of other things.
    I therefore created a custom header in “my library”, that I link in customizer “header > general > style”. This works well.
    However, I would prefer accessing to the “minimal” OceanWP menu rather that the default WP one, unfortunately I don’t see how to achieve that. I tried to use the “OceanWP Page Settings & Styling” in my custom header in order to add the “minimal” menu into the header option, doesn’t change anything. Actually, no option seems to have any effect.

    I could get a customized minimal menu? Developer-oriented solutions welcome too.
    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello @psykonevro,

    Thank you for reaching out,

    Customization for the predefined headers needs to change its code, and you cannot edit them without modifying its code. I would recommend creating your own header on the custom header, as we explained here: https://docs.oceanwp.org/article/355-how-to-create-a-custom-header and customize it.

    However, if you want to edit the predefined header(s); The solution to achieve it is customization, and it needs familiarity with PHP, if you are unfamiliar with PHP, you can contact a PHP expert. To do this, first, you need to use the child theme. You can copy the metafile from the partials folder in the child theme following the same path and then make the necessary changes.

    For more information about that, please follow the steps below:

    By using FTP or cPanel access (if didn’t use the localhost), Go to this directory:
    wp-content\themes\oceanwp\partials
    Find your template which you want to customize and copy that template file(in your case, for example, you need to change the date on the blog page, so you need to use the blog template(s): https://i.postimg.cc/brv9gn9s/image.png).

    Then head over to the same path on the child theme. There isn’t an entry folder as a default on your child theme, so you need to create a new one(one time).

    Example: If you want to change the HTML tags structure in the single blog post featured image for standard post format, all you need in this step is the following:

    1. Head over to your WP root > wp-content > themes > oceanwp > partials> single > media path.
    2. Then, find the “blog-single.php” file and copy this file.
    3. After that, go back to the themes folder (wp root > wp-content > themes) and go to the oceanwp-child-theme-master folder.
    4. Create a new folder with the “partials” name in the child theme.
    5. Go to the /partials/ folder and create a new folder with the “single” name.
    6. Go to the /single/ folder and create a new folder with the “media” name.
    7. Go to the /media/ folder and paste the “blog-single.php” file here.

    * Please check this screenshot: https://i.postimg.cc/sxjYTWyt/image.png.
    * Download child theme: https://docs.oceanwp.org/article/90-sample-child-theme.
    * Developer docs: https://docs.oceanwp.org/collection/19-developer-doc.

    Note: It’s working with the /woocommerce/ folder or root of the theme files.

    I hope it helps.
    Best Regards

    Thread Starter JCV

    (@psykonevro)

    Hi @skalanter
    I’m a plugin developer, and would like to modify OceanWP header in my plugin ??
    I found this
    https://docs.oceanwp.org/article/375-altering-header-style-by-page
    but I need to find how to edit the minimal $style. Is there a hook, by any chance?

    Hello @psykonevro,

    Thank you for reaching out,

    We also have a customizable template specifically for the menu in Customizer > Header > Menu so that you can customize the minimal header menu. Otherwise, if that doesn’t fit your needs, you must edit its template, as we explained in the previous reply.

    Our built-in styles serve to keep things as simple as possible because those styles cover the needs of almost 80% of websites.

    I hope it helps.
    Best Regards

    Thread Starter JCV

    (@psykonevro)

    Hi @skalanter
    Editing using the WP customizer is not an option, my question is related to a third party plugin I’m developping.
    Could you respond straight: is there a hook I could call like there is one mentionned in my previous email?

    Hi @psykonevro,

    I’m sorry, there is no hook available for it.

    Best Regards

    Thread Starter JCV

    (@psykonevro)

    Ok, noted, thanks for the confirmation.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to edit “minimal” menu?’ is closed to new replies.