• I am using OceanWP child theme and trying to add Rank Math breadcrumbs code to the theme’s single.php or header.php. However, the OceanWP child theme doesn’t have single.php or header.php. Please suggest.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @adrian309,

    In the latest version of the theme, we’ve added an option to manage the breadcrumbs for Rank Math and Yoast SEO plugins. To enable it, please make sure to use the latest version of the theme and then navigate to the WP Dashboard > Appearance > Customizer > General Options > Page Title, and find the “Breadcrumbs Source”; while Rank Math is activated, you can set it for the breadcrumbs.

    However, to customize the theme; usually, you must add your actions to the functions.php file, but by using FTP or cPanel access (if you 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).

    You can also edit the templates in the root of the theme, like single.php and header.php.

    * 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.

    Best Regards

    Thread Starter adrian309

    (@adrian309)

    Thank you very much. This is very helpful ??

    You’re very welcome. I’m glad we could help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Where to add Rank Math code in OceanWP child theme’ is closed to new replies.