• Helo.The link above i shared is my website. This I created by customizing oceanwp parent theme.I tried to create the child theme ,but it was not responsive.So i strated modifying the parent theme.Now my website is live ,but im scared to update the theme.So my question is, it is important to update the theme ? if its important please tell me how can i create a responsive child theme without headache .And one more question this website is not loading properly on safari incognito window .Its ok in chrome.what would be the reason behind that?Please reply.

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

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

    – Please follow the steps explained in this link regarding the child theme: https://docs.oceanwp.org/article/90-sample-child-theme.
    You do not need to update the child theme, but the parent theme must be up to date.

    – Regarding updating your WordPress theme, please do the step below:

    1- Create a backup of your theme.
    2- Head over to WP Dashboard > Updates.
    3- Find the sections of the theme.
    4- Use the bulk action and then click on the update button.

    – I tested your website on the simulator and real devices, but I didn’t see any issue. Would you please share some screenshots or a short video from your issue?

    For troubleshooting, please do the following steps and let me know the results:

    1- Head over to WP Dashboard > Plugin.
    2- Deactivate all plugins.
    3- Then, first activate the Ocean Extra plugin.
    4- Check your issue.
    5- Then, activate your plugins one by one
    6- After activation of any plugins, check your issue

    Note: if you have any cache plugin or server cache(CDN / Browser Cache and Cookies and …), you need to clear its cache contents or disable them to see your changes.

    Best Regards

    Thread Starter anumathew51097

    (@anumathew51097)

    Thanks I could create responsive child theme.But i need to know 2 things.1)i added few things in header.php in oceanwp theme.facebook pixel code and all.so when i updated the theme it vanished as usual.my question is how can i add this code,which i added on the header.php of parent theme, in child theme so that it wont vanish when update done.2)I added some styles,scripts to home page,using this path <link href=”<?php echo get_template_directory_uri(); ?>/assets1/css/style.css” rel=”stylesheet”>..it works when i add it on the parent theme …but not working on child theme.please note that i uploaded assets1 folder in the child theme and gave this path on home page.what would be the reason behind that?Currently what i did is updated the theme,vanished all the style,copied assets1 folder and pasted on the parent theme.Thts why its working now.I hope u uderstand my question.Thank you.

    Hi @anumathew51097,

    You can not edit the main theme, the only option is available to edit your website is using the child theme; The solution to achieve it is customization. To do this, first, you need to use the child theme. You can copy the meta file from the partials folder in the child theme following the same path and then do 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 pages, 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 posts featured image for standard post format, all you need in this step is:

    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, back to the themes folder (wp root > wp-content > themes) and go to oceanwp-child-theme-master folder.
    4- Create a new folder into the child theme with the “partials” name.
    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.

    I hope that helps,
    Best Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Creating Child theme’ is closed to new replies.