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

Scale An Image Thumbnail

There is a simple solution available in WordPress : add_image_size You can register as many sizes required in your theme, WordPress will generate the images in that size and crop it if crop is enable for that size. You can use regenerate thumbnails plugin to generate all the image sizes for older posts. Please check … Read more