Finding wordpress file in theme editor using the theme name

I’m not entirely certain I understand what you mean but whenever a Page Template is set WordPress also sets postmeta with a specific key and value. The key is called _wp_page_template and the value holds the template location relative to the theme. So you could do this: $pages_with_templates = new WP_Query( array( ‘post_type’ => ‘page’, … Read more

Re-naming a theme/child theme whilst maintaining updates

You should not store an exact copy of the Divi theme in your child theme, there is little point to that. Your child theme stylesheet will reference the parent theme directory name in the template attribute within the header of your stylesheet: /* Theme Name: Your Child Template: divi //shortened for brevity… */ The parent … Read more

wp_add_inline_style() not working?

You need to hook wp_add_inline_style to wp_enqueue_scripts. Check the codex example. Something like (not tested): function lethal_post_circle_background(){ global $post; $id = $post->ID; $custombgcolor = get_post_meta( $id, ‘bgcolor’, true ); $custombgimage = get_post_meta( $id, ‘bgimage’, true ); if($custombgcolor | $custombgimage){ $css=”.post-“.$id.’ .post-circle{ background:’; if($custombgcolor) $css .= $custombgcolor . ‘ ‘; if($custombgimage) $css .= ‘url(“‘ . $custombgimage … Read more

none of my css is working in my child theme

It looks like the code you copied from is missing the part where your child theme styles are actually added to WordPress. It’s a little strange they skipped over this, mind you! From the WordPress Codex article on child themes, you just need to modify your style enqueueing function so it includes this: wp_enqueue_style( ‘child-style’, … Read more