Permissions error

This is more server config question than WordPress. Make sure the www-data group has write permissions in the directory you’re running WordPress from. Assuming it’s in /var/www/ then sudo chmod -R g+rwxs /var/www/ should do the trick.

Why is my container argument not working for wp_nav_menu() [closed]

As I am using the roots theme framework, this line removes the container argument: function roots_nav_menu_args($args=””) { $roots_nav_menu_args = array(); $roots_nav_menu_args[‘container’] = false; if (!$args[‘items_wrap’]) { $roots_nav_menu_args[‘items_wrap’] = ‘<ul class=”%2$s”>%3$s</ul>’; } if (!$args[‘depth’]) { $roots_nav_menu_args[‘depth’] = 2; } return array_merge($args, $roots_nav_menu_args); } add_filter(‘wp_nav_menu_args’, ‘roots_nav_menu_args’);

How to add custom page elements to the WYSIWYG editor?

It’s possible to manually add buttons to your editor. https://codex.wordpress.org/TinyMCE_Custom_Buttons The Codex actually links to a full tutorial detailing the process, as well. http://code.tutsplus.com/tutorials/guide-to-creating-your-own-wordpress-editor-buttons–wp-30182 That will guide you through all the steps: Adding shortcodes to your site Creating a TinyMCE plugin (register, set up, create buttons, and add what they should do) Including editor styles … Read more

Theme for subcategories

You could use the template_redirect hook to check and see if your post is a category and then whether it is a sub-category … and if so, force a different template. For example (assuming you are using wordpress categories) function my_maybe_override_category_template( $template ) { # Make sure you are about to show a category term … Read more

Create theme for mobile phones and tablets only?

It’s doable with a user agent string “sniffer”. Take a look at this project: http://mobiledetect.net Mind you, this approach can be troublesome as most modern browsers can ‘fake’ their user agent strings. Also, this approach doesn’t work to well with caching systems. I’ve implemented it successfully on a project I worked on, and I know … Read more