Custom CSS to resize elements in multiple categories

Well, I think you could use the CSS begins with selector to select all div’s that begin with category- div[class*=’category-‘] #main { width: 300px!important; } so as you add them, it will still affect any class that begins with them. Then, assuming you have 1 or 2 categories you don’t want to have the property, … Read more

How Can I Center the Logo in the Navigation Menu? [closed]

As this is a premium theme, I would recommend going back to the original developer for a improvement request. You might find they are already implementing this or might be interested in your feedback and initiate the changes. http://themeforest.net/item/medicenter-responsive-medical-health-template/4000598

WordPress – Image href for home menu nav not working

The class used for your navigation menu’s anchor tag has a css selector :hover. Because the image logo has been added withing the anchor tag, it is considered a part of the link and the hover styling affects it as if it were any other link in your nav menu. Solutions Find another way to … Read more

How to support extra color options for shortcodes?

You have multiple options. A) Use inline-CSS: <button style=”background: <?php echo CHOSEN_COLOR_HERE (possibly validated) ?>;”> … </button> B) Write (ID-specific) CSS styles into your page. In your shortcode function, echo a <style> tag, for instance like so: <style> #shortcode-button-1 { background: <?php echo CHOSEN_COLOR_HERE (possibly validated) ?>; } #shortcode-button-2 { background: <?php echo CHOSEN_COLOR_HERE (possibly … Read more

Add custom class to a tags [closed]

As s_ha_dum said, Widgets are not meant to be used like this. If you want to change the behavior of all your h3 tags inside your posts, WordPress has already article with “post” or “type-post” classes so you should modify your css like this : .post h3 { *** } If you want your change … Read more

wp add inline style in loop

If grid_init() runs inside the Loop, then it executes after the page head and after the associated hooks– wp_head, wp_enqueue_scripts, etc. PHP executes line by line in sequence, so if you miss a hook you just missed it. You can’t go backwards. The script/style enqueueing subsystem does have to ability to put things int he … Read more

Show contact 7 form in popup

So far I guess, you need the following corrections: <div class=”map”> <img src=”http://www.gate7infotech.com/projects/development/MyLuckyBottle/wp-content/themes/twentythirteen/images/home_background.jpg”/> <a href=”#pop-up-form” shape=”rect” coords=”31,572,499,1028″ class=”a lightbox”>Registration Form</a> <a href=”#” class=”b”></a> <a href=”#” class=”c”></a> </div> <?php //This should be a hidden DIV; ?> <div id=”pop-up-form” style=”display:none”><?php echo do_shortcode(“[contact-form-7 id=’4′ title=”Registration Form”]”); ?></div>