Marketpress css

I would like to set up the following css globally so i dont have to do it on very subsite , how do i do this

.mp_single_product .mp_single_product_images .mp_product_image_single {
max-width: 300px;
}

  • Rupok

    Hi antony,

    Thanks for asking. You can use custom CSS code globally instead of setting that on every subsite and on every theme by creating a MU Plugin. For creating a MU Plugin, create a folder named "mu-plugins" inside your "wp-content" folder. Then inside that "mu-plugins" folder, create a file with any name and with a .php extension. Now paste the code inside that file and save.

    <?php
    add_action( 'wp_head', 'custom_css_globally' );
    function custom_css_globally() {
        ?>
        <style type="text/css">
    		.mp_single_product .mp_single_product_images .mp_product_image_single {
    			max-width: 300px;
    		}
        </style>
        <?php
    }

    For getting more idea on mu plugins, you can go through this article: http://premium.wpmudev.org/manuals/wpmu-manual-2/using-mu-plugins/

    I believe, this will serve your purpose.

    Please let us know if this doesn't work as expected. We will be glad to help further.

    Have a nice day. Cheers!
    Rupok