This topic has 8 replies, 4 voices, and was last updated 9 years, 2 months ago ago by Eva Kemp
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?
Hello,
Please provide us with WP Dashboard credentials.
Best regards,
Jack Richardson.
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‘);
}
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.
Ok.
I want to change the font size in “Theme Options>Custom CSS” to a smaller size.
Hello,
You can use this code to change font size for all text on site.
p{
font-size:12px;
}
Regards,
Robert Hall.
I don’t want to change p font-size site-wide. Just for the “Custom CSS” input box.
Hello,
Could you please show a screenshot what you want to achieve?
Thank you.
Regards,
Eva Kemp.
You must be logged in to reply to this topic.Log in/Sign up