colorpicker WP 3.5 path to stylesheet when called from a child theme
colorpicker WP 3.5 path to stylesheet when called from a child theme
colorpicker WP 3.5 path to stylesheet when called from a child theme
Use get_stylesheet_directory_uri() and get_stylesheet_directory() for Child Themes Use get_template_directory_uri() and get_template_directory() for Parent Themes Thus making your function: <?php if ($gridly_color_scheme == ‘dark’) { ?> <link rel=”stylesheet” href=”https://wordpress.stackexchange.com/questions/107986/<?php echo get_template_directory_uri(); ? >/css/dark.css” /> <?php } elseif ($gridly_color_scheme == ‘custom’) { ?> <link rel=”stylesheet” href=”<?php echo get_stylesheet_directory_uri(); ?>/css/custom.css”/> <?php } else {?> <link rel=”stylesheet” href=”<?php echo … Read more
How to add anchor tag at the top of posts, past the header and nav bar?
Child theme not overriding ‘includes’ folder on server – on localhost it does
For your specific theme this question cannot be answered without analyzing all template files. More in general, a theme structured like this is almost impossible to make a child theme for. Take footer.php. If you just put that in your child theme it will be called at the appropriate moment. But if that file tries … Read more
Looking at your site’s source code, I assume it’s a problem with the name of your child theme’s folder – in the source code view, it shows up as revelar%20child%20theme. Recommended steps: Re-enable the parent theme. Rename the child theme folder from “revelar child theme” to “revelar-child-theme” … or anything without spaces or accented characters. … Read more
Take a close look at this https://premium.wpmudev.org/blog/how-to-create-wordpress-child-theme/ . Note that your child theme’s CSS file has two required parameters. From the above link: “The two necessary items in the code above are the lines starting with “Theme Name” and “Template.” The theme name tells WordPress what the name of your theme is, and this is … Read more
Well… I fixed it finally. I decided to bypass my child theme to try and allow myself to login to the admin system on the server. To do that I went into the database and set both the template and stylesheet options manually to “shapely”. Once in, I used the interface to re-select my child … Read more
Am unable to comment and ask qns, so done as answer. Point 3 below does identify an error; the rest I expect you’ve covered. I’ve also added my own working enqueuer (but I only needed style.css) ensure the value specified for “Template:” at the top of your CSS matches the value for “Theme:” in parent’s … Read more
How can I make this Advanced Custom Field Save & Store local json work?