Why does WP load so many files in the head of source code? How do I optimize it?

First of all, search this site. This questions has been answered many times in the past: https://wordpress.stackexchange.com/search?q=clean+wp_head and https://wordpress.stackexchange.com/search?q=security+obscurity Secondly, there is a difference in what WP loads and what a theme and a plugin will load. Look in the theme functions file to see what the theme loads, i.e. javascripts and CSS. Look in … Read more

custom header navigation has odd spacing [closed]

I’m not sure what’s causing the causation of your problem, but for some reason the <li> tags are not being added around the “portfolio” menu item, when you visit the blog page. Maybe you can see why in the custom header menu code?! The <li> tags are what creates the spacing(padding-right) in between each menu … Read more

Rotate images in header based on date

The following code will cycle between the 9 pics. 1st day of the year = pic0, 2nd = pic1…359th = pic9, 360th = pic0, etc. <?php $pic_array = array( ‘pic0’, ‘pic1’, ‘pic2’, ‘pic3’, ‘pic4’, ‘pic5’, ‘pic6’, ‘pic7’, ‘pic8’, ); $d = (int) date(‘z’) % 9; $todays_pic = $pic_array[$d]; echo $todays_pic; Hopefully you’re not changing a … Read more

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