Overwrite CSS with without deleting it

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; }

Displaying Custom Fields on Post with Genesis Child Theme

How about instead of genesis_custom_field(‘instrument’); use: echo genesis_get_custom_field(‘instrument’); Plus the genesis_after_post_title action hook is deprecated since 1.7.0 and you should use genesis_entry_header with correct priorities. For more information please use the reference links below. Reference: genesis_after_post_title Genesis 2.0 Hooks reference

How to stop PHP code running when in a child theme

You can’t actually “remove” PHP code from the parent theme. What you can do is undo things done there. The counterpart of wp_enqueue_script is wp_dequeue_script. If you put this in your functions.php it should remove the Masonry Plugin (untested) add_action( ‘wp_print_scripts’, ‘de_script’, 100 ); function de_script() { wp_dequeue_script( ‘jquery-masonry’ ); } Source: Function Reference/wp dequeue … Read more

How to change default header image dimensions in twentyfourteen child theme?

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

Understanding child theme functions.php

What I read is that the parent css was loaded after the child, so the last one wins It depends on the order in which theme developer is loading stylesheets. Normally WordPress loads child theme’s functions.php first and then parent theme’s functions.php. the parent Emmet theme uses CSS files called differently than Style.css Yes it … Read more

How to override languages files in wp-content/languages/themes with child theme

Since WP 4.6 load_theme_textdomain() (and consequently load_child_theme_textdomain()) will give priority to .mo files downloaded from WP’s online translation platform (translate.wordpress.org). Due to some new code (here, on line 769) these functions will completely ignore your local .mo files if the textdomain is found in the general languages/ directory. You can, however, use the more basic … Read more

Dequeue only stylesheets but not inline style added using wp_add_inline_style

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