replace parent theme images in child theme
replace parent theme images in child theme
replace parent theme images in child theme
Twenty fourteen loads its stylesheets differently in that it made the main stylesheet dependant on the genericon stylesheet, and I’m sure that this is the problem you are experiencing. (if not, please update your question with proper details) You can change how you enqueue your style in the first block of code as follow wp_enqueue_style( … Read more
but I currently have copied three files from the parent theme to my child theme and modified them there. I know this is not a good idea as once the parent theme is being updated I might be in trouble. Wrong. This is the whole point of why people should be using child themes. If … Read more
Assuming you have your child theme set up correctly, placing the following CSS in it which simply resets some of the preset values should get you all the way there. .et_pt_portfolio_entry { border: none; border-bottom: none; background: transparent; -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; padding: 5px; margin-bottom: 7px; }
The is a filter to the custom header function in the twenty fourteen theme. You can use that to add your new sizes. Here is what I use to change the default size. function wpse_custom_header_setup() { add_theme_support( ‘custom-header’, apply_filters( ‘wpse_header_args’, array( ‘width’ => 1460, ‘height’ => 220, ) ) ); } add_action( ‘after_setup_theme’, ‘wpse_custom_header_setup’ ); … Read more
wp_add_inline_style must accompany with an existing enqueued style. So the moment you dequeue or deregister that style, the associated inline style also gets dequeued or deregistered. To avoid that, you must first retrieve the inline style and then dequeue. Method-1: If after dequeueing theme-dynamic-styles handle, you don’t want to enqueue a new one in its … Read more
I found the problem. I went to edit the stylesheet in WordPress’s editor, and saw that the stylesheet’s code had been moved onto 1 line. This meant the top comment section was also on one line, and the Template: twentytwelve was not distinct. Adding line breaks resolved the problem.
To clarify this, for anyone using Divi theme (but generally any WP theme), a simple inspection using Dev tools on the “head” for the stylesheet links usually gives a clue about the handle, as Den Isahac mentioned previously (it wasn’t clear as he mentioned it can’t be found). Anything before the “-css” on the ID … Read more
The code that is in codex for queuing the style of the parent theme instead of using @import, is not well commented, so i will comment it more, so you have this: <?php function my_theme_enqueue_styles() { $parent_style=”parent-style”; wp_enqueue_style($parent_style, get_template_directory_uri() . ‘/style.css’); wp_enqueue_style(‘child-style’, get_stylesheet_directory_uri() . ‘/style.css’, array($parent_style), wp_get_theme()->get(‘Version’) ); } add_action(‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’); ?> 1.- line: $parent_style=”parent-style”; … Read more
The problem is that you stylesheet is cached by your browser. This is no problem specific to WordPress, but will happen with every resource that you open in browser. The second thing that can (and probably will) be happening is that you have some sort of server side cache. You can work around your webservers … Read more