minderoperika
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Maintaining parent theme dependanciesHi Lisa, sorry for my absence, but here is section of the style.css file that outlines the child theme:
/* Theme Name: Creative Portfolio Responsive WordPress Child Description: Child theme for Creative Portfolio Responsive WordPress Author: Bianca Benson Template: CreativePortfolioResFree */Forum: Themes and Templates
In reply to: Maintaining parent theme dependanciesSomething is clearly not being referred to properly on my child theme. I just played around with the facebook icon. When I activate the parent theme through WP then everything shows up normally, also the icon.
But when I activate the child theme then the facebook icon disappears and just the word ‘facebook’ appears.Forum: Themes and Templates
In reply to: Maintaining parent theme dependanciesThis is the update code:
<?php add_action( 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() .'/style.css'); wp_enqueue_style( 'parent-flicker', get_template_directory_uri() .'/flickerplate.css'); wp_enqueue_style( 'parent-mobile', get_template_directory_uri() .'/mobile.css'); wp_enqueue_style( 'parent-slicknav', get_template_directory_uri() .'/slicknav.css'); } ?>and still no change – slider still missing, text spacing still out and still takes a long time to load.
Forum: Themes and Templates
In reply to: Maintaining parent theme dependanciesHi Lisa, I have cleaned up the wp_enqueue_script code in the functions.php file. But I can’t see any improvements/changes on the website.
Here is what my functions.php code looks like momentarily:
<?php add_action( 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'parent-flicker', get_template_directory_uri() . '/flickerplate.css, ' ); wp_enqueue_style( 'parent-mobile', get_template_directory_uri() . '/mobile.css, ' ); wp_enqueue_style( 'parent-slicknav', get_template_directory_uri() . '/slicknav.css, ' ); } ?>Forum: Themes and Templates
In reply to: Maintaining parent theme dependanciesWow, Lisa, you are amazing! Thank you so much for your guidance. You are my online mentor 🙂
I haven’t tried your most recent advice yet, I will try and implement it somewhere today.Just to get back to one of my previous questions:
What I don’t know is whether this style sheet should also contain all of the style.css code, or just a reference to it?:
If you’re asking if the child theme should have all the styles that the parent style.css has — no.
What I have done is (before even being aware of child themes) I adjusted the CSS within WP editor. So I can’t remember which snippets of code I have adjusted. That is why is simply copied and pasted the entire (modified) style.css in the child theme.
Can I keep it like this, and just change/tweak/modify the child theme css from now on?
Forum: Themes and Templates
In reply to: Maintaining parent theme dependanciesI have created the child theme and I can activate it through my WordPress admin panel. But I still think that I didn’t enqueue everything correctly, as my slider is now missing and the text spacing is all messed-up. It also takes ages to load which probably means it is looking for files which can’t be found. I leave it on the child theme for now so you can maybe have a look at it to see what I have done wrong: http://erikaminderop.com/
Forum: Themes and Templates
In reply to: Maintaining parent theme dependanciesI have another question:
I am busy creating the style.css and functions.php files to be housed under the child-theme folder. The WP codex instructions only give details as to changing the header of the style.css document. What I don’t know is whether this style sheet should also contain all of the style.css code, or just a reference to it?Forum: Themes and Templates
In reply to: Maintaining parent theme dependanciesThank you once again Lisa, i guess the writing is on the wall and this is a neat way to start learning coding, right?
Forum: Themes and Templates
In reply to: Maintaining parent theme dependanciesGreat Lisa! Thank you for the example code. I’m going to give it a shot and see if it works.
I have another question: The only reason I am trying to create a child theme is that when the parent theme gets an auto update I don’t lose my modifictions. But I was wondering if opening the style.css file and changing the theme name and information that is in the comment at the top will help. This will essentially turn the theme into a child theme and no updates will affect it, right? Will this be effective? Is it smart to prevent a theme from updating – thinking in long term?