disable jscrollpane in specfic div [closed]
this should work- $(‘#content’).not(‘body.home #content’).jScrollPane();
this should work- $(‘#content’).not(‘body.home #content’).jScrollPane();
if it the functions file, the child theme is loaded in conjunction with it’s parent, the child being loaded first. If its the index.php file, you need to make sure your WordPress version greater than or equal to 3.0. Otherwise, your index.php file won’t overwrite. A lot of reworking of themes has happened, so make … Read more
You can use <?php get_template_directory_uri(); ?> to reference your parent theme folders. From the WordPress codex: In the event a child theme is being used, the parent theme directory URI will be returned…
From codex, the Template: bit needs to be the name of the directory for the parent theme; you have the nice name of the theme instead.
I had the exact same problem and finally figured it out. You have to go into functions.php line 390 – if ( is_page_template( ‘page-templates/front-page.php’ ) ) { copy and paste this section of code and rename it to the file name you have chosen for your template. Then you have to alter all the CSS … Read more
An independent theme is not a child theme anymore. Copy the original theme instead, use another name and another directory name too. Do not use the Template: othertheme part in your style.css headers. That’s all. No magic. 🙂
When in doubt, !important it out! In the child, change it to max-width:769px !important;. That will force the page to be rendered with that style. I have a feeling the parent theme is using @import to get custom.css (although I cant verify that). That could be screwing with things.
Generally speaking, you want to load your general stylesheet (style.css) first and follow it with your more specific stylesheet(s) (style-premium.css). However, the actual details of how CSS cascades are more complex than that and your specific stylesheet can still be overridden by the general stylesheet: if the !important declaration is used based on the specificity … Read more
No, for better or worse WordPress only support single level of theme inheritance. You would need to either apply modifications without modifying it via hooks (if possible at all) or fork it. If specific child theme receives updates be careful to disable them – explicitly by excluding from update checks or implicitly by changing its … Read more
You can remove all the CSS code under the Media Queries section of any child theme built on Genesis. This code is generally located at the end of the style.css file. However, WordPress also includes responsiveness built in so its not really possible to totally remove everything unless you go to a lot of trouble. … Read more