Style.css not working - by kristofferj - on WordPress WooCommerce support

This topic has 8 replies, 4 voices, and was last updated 8 years, 7 months ago ago by Eva Kemp

  • Avatar: kristofferj
    kristofferj
    Participant
    September 29, 2015 at 23:48

    I’m trying to use style.css for some styling (i’m using custom css in theme options also). But for some reason it won’t work. How can i make the styling in style.css (in woopress-child dir) apply?

    I’m also wondering if there is some way to shrink the font-size in the custom css window?

    7 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    September 30, 2015 at 11:30

    Hello,

    Please provide us with WP Dashboard credentials.

    Best regards,
    Jack Richardson.

    Avatar: kristofferj
    kristofferj
    Participant
    September 30, 2015 at 14:36

    I would prefer not to give out my login details, cause I just develop the site. It’s not mine.
    So could you just give me the code to add in functions.php and to style.css(for styling of the custom css box)?
    My current functions.php looks like this

    <?php add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
    function theme_enqueue_styles() {
    wp_enqueue_style( ‘child-style’, get_stylesheet_uri(), array( ‘bootstrap’, ‘parent-style’ ) );
    }

    /* replace add to cart with view product */
    function remove_loop_button(){
    remove_action( ‘woocommerce_after_shop_loop_item’, ‘woocommerce_template_loop_add_to_cart’, 10 );
    }
    add_action(‘init’,’remove_loop_button’);

    add_action(‘woocommerce_after_shop_loop_item’,’replace_add_to_cart’);
    function replace_add_to_cart() {
    global $product;
    $link = $product->get_permalink();
    echo do_shortcode(‘View Product‘);
    }

    Avatar: Robert Hall
    Robert Hall
    Support staff
    September 30, 2015 at 16:24

    Hello,

    Sorry, but it’s very difficult to provide support without access.

    Please read more here how to use Child Theme:
    https://codex.wordpress.org/Child_Themes

    Could you please clarify what exactly element you want to change font size?

    Regards,
    Robert Hall.

    Avatar: kristofferj
    kristofferj
    Participant
    September 30, 2015 at 17:24

    Ok.
    I want to change the font size in “Theme Options>Custom CSS” to a smaller size.

    Avatar: Robert Hall
    Robert Hall
    Support staff
    September 30, 2015 at 17:36

    Hello,

    You can use this code to change font size for all text on site.

    p{
    font-size:12px;
    }
    

    Regards,
    Robert Hall.

    Avatar: kristofferj
    kristofferj
    Participant
    September 30, 2015 at 20:58

    I don’t want to change p font-size site-wide. Just for the “Custom CSS” input box.

    Avatar: Eva
    Eva Kemp
    Support staff
    October 1, 2015 at 12:24

    Hello,

    Could you please show a screenshot what you want to achieve?

    Thank you.
    Regards,
    Eva Kemp.

  • Viewing 8 results - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.