Twenty Twelve theme: remove margins

I think you mean these class definitions in style.css: /* =Media queries ————————————————————– */ /* Minimum width of 600 pixels. */ @media screen and (min-width: 600px) { …cut… .site { margin: 0 auto; max-width: 960px; max-width: 68.571428571rem; overflow: hidden; } …cut… } /* Minimum width of 960 pixels. */ @media screen and (min-width: 960px) { … Read more

Setting different CSS for all pages except home.php

Instead of <?php if(!is_home() || !is_front_page()) :?> you could use <?php else: ?> This style will not affect the wp-admin part, only the front end of your web since this is used in header.php. A safe way is to use wp_register_style() and wp_enqueue_style() as described here in the Codex: http://codex.wordpress.org/Function_Reference/wp_enqueue_style http://codex.wordpress.org/Function_Reference/wp_register_style In your case it … Read more

Changing appearance of WooCommerce product layout [closed]

This is indeed something that you need to make a specific page template for. Just CSS won’t do the trick because you need to add a function to your functions.php file (in your theme or child-theme folder) to display the excerpt. You could do something like this: add_action( ‘wp’ , ‘add_excerpt’, 20); function add_excerpt() { … Read more

Output dropdown results into Woocommerce Order details

Take a look at the WooCommerce docs here: Tutorial – Customising checkout fields using actions and filters your code would look something like this: function my_custom_checkout_field( $checkout ) { woocommerce_form_field( ‘my_field_name’, array( ‘type’ => ‘select’, ‘class’ => array(‘my-field-class form-row-wide’), ‘label’ => __(‘Question?’), ‘placeholder’ => __(‘Enter something’), ‘options’ => array( ‘Yes’ => __(‘Yes’, ‘woocommerce’ ), ‘No’ … Read more

website is sending people to wrong address

Sounds like you have a problem in your database. Did you import it from somewhere else? Specifically within your wp_options table, the siteurl option is incorrect. Double check that to make sure it’s the right site name. If it’s wrong, then it’s probably wrong in a lot of other areas too, but changing that key … Read more

Is there an alternative way to upload html without using TinyMCE?

WordPress does a handful of HTML clean-up tasks when you submit your post. Here are a few: “Texturize” the special characters Automatic paragraphs – for carriage returns Emoticons Special characters (like “&” and “<“) Removing script tags and other “unsafe” stuff You will want to investigate the Raw HTML plug-in which has some great provisions … Read more

woocommerce product categories in menu [closed]

I found the answer. The main problem is: First of all woocommerce plugin has own ID system. And wordpress has own ID system. And it happened that with the same ID was two different items. For example: Woocommerce category name “my category” has ID: 13 And WordPress page “Logout” has ID: 13 So, in woocommerce … Read more