mgybran
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Astra] How to make css changes in child style sheetHi,That helped.
I generated a new child theme and changed the version number. Now the stylesheet is being used and I can also use the customized css interface.
Thanks for your help.
MitchellForum: Themes and Templates
In reply to: [Astra] How to make css changes in child style sheetCorrection, my functions.php file content is below
add_action( ‘wp_enqueue_scripts’, ‘enqueue_parent_styles’ );
function enqueue_parent_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri().’/style.css’ );
}Forum: Themes and Templates
In reply to: [Astra] How to make css changes in child style sheetHi Herman,
How do I clear the site cache? You are talking about at the hosting level, right?
I read somewhere that it was only necessary to enqueue the parent style but I saw from your screenshot that you have enqueued the child stylesheet. I therefore tried to add that to my functions php
***
function child_enqueue_styles() {wp_enqueue_style ( ‘astra-child-theme-css’, get_stylesheet_directory_uri () . ‘/style.css’, array(‘astra-theme-css’), CHILD_THEME_ASTRA_CHILD_VERSION, ‘all’ );
}
***file but I get an error:
***
Your PHP code changes were rolled back due to an error on line 12 of file wp-content/themes/astra-child/functions.php. Please fix and try saving again.syntax error, unexpected ‘child_enqueue_styles’ (T_STRING), expecting ‘(‘
***
I tried correcting it but errors continued, so I removed it.I tried your code:
***
define ( ‘CHILD_THEME_ASTRA_CHILD_VERSION’, ‘1.1.0’,
***
but get the same error.I include below what I have in my functions.php file:
***
function example_enqueue_styles() {// enqueue parent styles
wp_enqueue_style(‘parent-theme’, get_template_directory_uri() .’/style.css’);}
add_action(‘wp_enqueue_scripts’, ‘example_enqueue_styles’);
***Thanks, Mitchell
Hi, that worked like a charm. Thanks. Much appreciated.
pps. the issue occurs when scrolling slowly over the image as well as quickly.
ps. I have a screenshot which illustrates the absence of the arrows but am not sure how I can attach it to this forum message.
nb. test accordian in second section from the top. Theme is Astra free.
PS. When I include just a short paragraph of text on top of the image the issue does not happen. It occurs when more text is added (not a huge amount)