Hot answers tagged

3

You could use the filter term_links-post_tag to sort tags while ignoring their case: add_filter( "term_links-post_tag", 'themeslug_sort_tags_alphabetically' ); function themeslug_sort_tags_alphabetically( $tags ){ natcasesort( $tags ); return $tags; } This code is to be placed in the functions.php of the child theme.


2

Stick to filtering one value at a time to keep it simple, and add filters for the colors to be used by the child theme: add_filter( 'post_thumbnail_html', 'map_thumbnail'); function map_thumbnail($html) { $my_post = get_post($post->ID); $defaultcolor1 = "#??????"; // parent theme default $defaultcolor2 = "#??????"; // parent theme default $...


2

You can use get_stylesheet_directory() to refer to your child theme, then you can point to your file. require_once( get_stylesheet_directory() . '/includes/theme-styles.php' ); It will load your file and replace the parent theme file.


1

There are three things to check: 1 - Is your parent theme complete and what is the exact spelling of the parent theme's name in its style.css. Uppercase and lowercase are important. 2 - Is the child theme directory named parentname-child. It should be in the themes directory, not in a subdirectory of the parent theme. 3 - Does the child theme's style.css ...


1

you need to enqueue styles in child theme's function.php to override parents styles. if you want to completely removed parent's bootstrap css then use wp_dequeue_styles() function and enqueue new bootstrap css in child theme's function.php http://wpsites.net/web-design/how-to-deregister-dequeue-style-sheets/


1

All the information you need can be found here: https://codex.wordpress.org/Child_Themes The important parts to get it up and running would be to: Make sure the parent theme exists (the complete accesspress-lite theme in your case) Create a unique folder name for your child theme. Create a style.css file in your child theme folder. /* Theme Name: Your ...


1

There are a few steps you'll need to take, to switch parent themes. Create a Backup of the Original Child Theme If you have FTP access, log into [root]\wp-content\themes\ and download the child theme folder to your your computer. Copy and rename the entire child theme folder. This will be your new child theme. If you don't have FTP access, it's probably ...


1

I think you are confused about this. Let me explain. The @import url("../responsive/style.css"); is telling the Child theme to import the Responsive themes style.css. This is important because without this the Child theme doesn't know what its Parent theme is. So the @import url("../responsive/style.css"); points the Child theme to the default (main) file ...


1

You have two options here In a child theme, dequeue and deregister the scripts and style you are not going to need. Just remember to hook your function to wp_enqueue_scripts with a lower priority (higher number) Use the twentyfifteen as a base to a new theme. I have successfully used bundled themes in the past to create new, selfstanding themes. That is ...



Only top voted, non community-wiki answers of a minimum length are eligible