(p.s. Now the emails received has two headers and two footers….:-)
Rgds
]]>In the last month I have been creating my very first website. Before this I had no coding knowledge so everyhting I learnt was new to me.
My problem over the last week is that my child theme .css files (and php. file but that is a different matter) are not overriding their parent .css files. I have been trying to search for a solution all week but have had no success so far.
This is the code I put into the child functions.php file
————————————————————————
(1)
<?php
function my_theme_enqueue_styles()
{
$parent_style = 'adforest-style'; // This is 'adforest-style' for the AdForest theme.
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/css/modern.css' );
wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/modern.css', array( $parent_style ), wp_get_theme() >get('1.0.0') );
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
?>
————————————————————————
(2)
<?php
function my_theme_enqueue_styles()
{
$parent_style = 'adforest-style'; // This is 'adforest-style' for the AdForest theme.
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/css/modern.css' );
wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/modern.css', array( $parent_style ), wp_get_theme() >get('1.0.0') );
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles', 1 );
?>
————————————————————————
(3)
<?php
function my_theme_enqueue_styles()
{
$parent_style = 'adforest-style'; // This is 'adforest-style' for the AdForest theme.
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/css/modern.css' );
wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/modern.css', array( $parent_style ), wp_get_theme() >get('1.0.0') );
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles', PHP_INT_MAX );
?>
———————————————————————————-
(4) (Used in the modern.css child file)
@import url("../css/modern.css");
——————————————————————————-
Any help is greatly appreciated from me
]]>We’re trying to make some small css changes in our child theme style but most are not working because the UM css seems to take priority over our css.
Any help would be appreciated.
]]>how can i modify the onepress_gallery_html function in the templates-tags.php, more specific the $html variable since the function doesn’t have the if overide in the parent theme. I don’t want to change any of the parent files.
Any help is greatly appreciated.
]]>I have a problem with the email template
when i copy ../plugins/mailjet-for-wordpress/templates/confirm-subscription-email.php
and paste in /my-theme/confirm-subscription-email.php
OR /my-theme/templates/confirm-subscription-email.php OR /my-theme/mailjet-for-wordpress/templates/confirm-subscription-email.php it doesn’t override.
I tried every way. PLease help me
]]>If I could directly edit this file
woocommerce/includes/widgets/class-wc-widget-recent-reviews.php
I could work out how to do that.
I won’t do that as its not recommended and will break on update.
However I couldn’t understand how to hook into this widget from the docs
https://docs.woocommerce.com/wc-apidocs/class-WC_Widget_Recent_Reviews.html
It also seems I’m unable to overide the file at
child-theme/includes/widgets/class-wc-widget-recent-reviews.php
Is that correct or have I done something incorrectly?
I’ve love the ability to hook into the templates and change just about everything,
But I can’t seem to work it out with the widgets.
Perhaps I need to create a custom plugin to do this? But I wouldn’t know how ‘extend’ WC_widget works.
This is the site we’re working on zumbawithcharlie.com
Thanks for any ideas or feedback! Would be really fun and useful if can hack into these widgets!
]]>Like i have a custom type called portfolio, so should I take single.php copy it and make single-portfolio.php and make my edits there?
Cheers
Harry
]]>.wc-shortcodes-box-primary * {color: #ffffff;}
https://www.ads-software.com/plugins/wc-shortcodes/
]]>With the_tag(), i want to add a <span></span> in front and after EACH tag of the tag list for styling like this :– eg: for tag1 and tag2
<span class="tag_open"></span>
<span class="tag">tag1_name </span>
<span class="tag_close"></span>
<span class="tag_open"></span>
<span class="tag">tag2_name </span>
<span class="tag_close"></span>
I thought about using the :before and :after css but ie6 dont support. So how do i override the function? or how to write a custom foreach loop function to list the tags of the post?
Thank you
]]>