Minor css-change based on topmenu – how?

My answer adds a class to the <body> element via the body_class filter. This is probably the easiest way to apply extra formatting to any element on the page. The added classes are wpse14430_products, wpse14430_services or wpse14430_contact (based on the slugs of the top pages in your example). Using wp_nav_menu() If you use wp_nav_menu() to … Read more

Guidance with The Loop for CMS

Strictly, you don’t need to use a loop in a page template, but it doesn’t hurt, the content of the page will still load, the loop will simply only run once as there is only one post/page. Many themes include a loop in page templates, I guess for some compability issue. If you are building … Read more

Sub-directory blog on a sub-domain WordPress network site

You could create a network-of-networks, using the WP Multi Network Plugin. The primary network would be a subdomain network, and the subsidiary networks would be subdirectory networks. Alternately, you could simply set up a subdomain network, and then use a static front page in each of the network sites, with the blog posts index set … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)