How to correctly enqueue the parent and child theme stylesheets in the creation of a child theme? [duplicate]

Check this codex page. In the event that a child theme is being used, the parent theme directory URI will be returned. So if you want to include your other css files you just need to all your CSS files: add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ ); function theme_enqueue_styles() { wp_enqueue_style( ‘parent’, get_template_directory_uri() . ‘/style.css’ ); wp_enqueue_style( ‘custom-handler-one’, … Read more

How to load different homepage on Mobile.?

This question is pretty vague but I’ll give it a shot. A few options: 1) Check out WPtouch – http://www.wptouch.com/ – This plugin gives you the ability to override certain aspects of your primary theme with mobile friendly templates instead. 2) This is not ideal but you could use some basic Javascript to check the … Read more

How to display footer menus in wordpress

You have to register the menu, as you have done, and then use the function wp_nav_menu() in the template file where you want to display the menu. wp_nav_menu( array( ‘theme_location’ => ‘footer_menu’, );

Moving wp-content folder

The answer depends on why are you moving the folder. If you just need to folder to be moved but leave the URLs the same then you will need to adjust yout apache/nginx config files to point to the right directory when serving a request for a url of the type /wp-content/… If you need … Read more

Configure new installed WordPress in live server

If I understand you correctly, this is because you have a index.html (from your static site) and a index.php (from WordPress). So if you rename your index.html to something like: oldindex.html, the correct index.php will be shown (the WordPress index.php). Alternatively, you could remove the index.html.

WordPress suddenly creating theme errors

That’s a PHP warning, not technically an error, and isn’t real critical. It’s due to your webhost updating the version of PHP; and the theme StandardTheme_272 should initialize an object before setting a property. See if there is a theme update. If not, https://stackoverflow.com/questions/14806959/how-to-fix-creating-default-object-from-empty-value-warning-in-php for instructions on how to fix the theme. You can temporarily … Read more

can’t see aditional themes in control panel

Could be a few things causing it. Have you altered any core files or wp-config in anyway? Are the themes definitely valid, they have a style.css file with the required information filled in? I’d recommend setting up a completely fresh WordPress installation. Copy each theme in one at a time and make sure they show … Read more