Style Switching

You have to use Conditional Tags, with those, you can check in which page you are, and load a diferent stylesheet for each option. A little example using is_page if(is_page(‘about’)){ echo ‘<link href=”https://wordpress.stackexchange.com/questions/161615/style1.css” rel=”stylesheet” type=”text/css” />’; } else { echo ‘<link href=”style.css” rel=”stylesheet” type=”text/css” />’; } That should go in your header.php file, or you … Read more

Color Picker – Theme options

Here is a great tutorial on how to add a colorpicker to your admin page. Regardless of how you are adding a colorbox or what plugin you are using, assuming you added it by adding a field in your options table (as provided in the link), you can use the color value anywhere in your … Read more

adding a favicon to site2 – site1/site2/favicon.ico

For me its showing different on Safari and different on chrome. When I checked page source, I noticed favicon is being called thrice. Please delete other two instances and then check clearing browser cache for all browsers. I believe it should work then.

Centering items in a row, when you don’t know how many items [closed]

Try this instead: .container-hotel { width:78%; margin: 0 auto; text-align:center; @media (max-width: 480px) { width: 100%; } } .item-hotel { display: inline-block; vertical-align: top; text-align: left; width:230px; margin-left: 40px; @media (max-width: 480px) { float: none; display: block; width: 100%; margin-left: 0; } }

checkbox function not working for dropdown menu

As per the wp_nav_menu() function the default classes are like below: <ul class=”menu”> <li><a href=”#”>Menu</a></li> <li> <a href=”#”>Menu</a> <ul class=”sub-menu”> <li><a href=”#”>SubMenu</a></li> <li><a href=”#”>SubMenu</a></li> </ul> </li> <li><a href=”#”>Menu</a></li> </ul> Note that, the .menu and .sub-menu. May be you are messing with the wrong class names, and some class conflicts.

Load specific js & css based on class or ID?

WordPress enqueues javascript before the HTML is rendered so WordPress doesn’t know what the class or ID is on the page. What you MIGHT be able to do is deenqueue the Next-Gen gallery Javascript so it isn’t loaded at all and then create your own Javascript file which loads the required Next-Gen JS if a … Read more