enatella
Forum Replies Created
-
Forum: Installing WordPress
In reply to: public_html/wp-includes/functions.php on line 1064I didn’t have to wait long ??
PHP version updated and problem solvedForum: Installing WordPress
In reply to: public_html/wp-includes/functions.php on line 1064I have the same problem. I tried to update the PHP version which was 5.2.14
I will wait for the update and try againForum: Fixing WordPress
In reply to: Error Enqueing child theme stylesheetsThe parent theme as long as I don’t use the child theme it works properly.
The only strange thing is that it uploads two files style.css but in the correct folder.
Only if I activate child theme doesn’t work properly.It looks like it doesn’t loads the template directory
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
but only the stylesheet directorywp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( $parent_style ), wp_get_theme()->get('Version') );
Don’t you think it just depends on the function.php of the child theme?
I’m doing something wrong
Forum: Fixing WordPress
In reply to: Error Enqueing child theme stylesheetsSorry I didn’t understand. What should I do?
I didn’t understand why it loads the file style.css twice, both with the parent and with the child theme.
When I use the parent theme, WP load (twice) the file style.css from the
wp-bootstrap-4
folder.When I activate the child theme load the style.css file (twice) from the child folder
wp-bootstrap-4-child
, not fromwp-bootstrap-4-style
How do I load both style.css files correctly?
Thank you so much @joyously
Forum: Fixing WordPress
In reply to: Error Enqueing child theme stylesheetsWhen I deactivate the theme child, the style folder is
wp-bootstrap-4
, but when I activate it the folder iswp-bootstrap-4-style
The source code of original theme.
<link rel='stylesheet' id='wp-bootstrap-4-style-css' href='domain/wp-content/themes/wp-bootstrap-4/style.css?ver=1.0.2' type='text/css' media='all' /> <link rel='stylesheet' id='wp-bootstrap-4_no-kirki-css' href='domain/wp-content/themes/wp-bootstrap-4/style.css' type='text/css' media='all' />
The function.php file of theme enqueue/import the stylesheet in this way:
... wp_enqueue_style( 'wp-bootstrap-4-style', get_stylesheet_uri(), array(), '1.0.2', 'all' ); ...
- This reply was modified 5 years, 1 month ago by enatella.
Forum: Fixing WordPress
In reply to: Error Enqueing child theme stylesheetsDo you still have the @import in the style.css?
Yes but nothing change
Use your browser to view the source of the page to see what is being output in the <head> section.
I see only child style resource but two times:
<link rel='stylesheet' id='wp-bootstrap-4-style-css' href='https://domain/wp-content/themes/wp-bootstrap-4-child/style.css?ver=1.0.2' type='text/css' media='all' /> <link rel='stylesheet' id='wp-bootstrap-4-child_no-kirki-css' href='https://domain/wp-content/themes/wp-bootstrap-4-child/style.css' type='text/css' media='all' />
It’s best to ask at the theme’s support forum, in case the theme does something different than usual. (Like my theme, which loads the child style so the child doesn’t have to load anything.)
Now I also ask them.
Thank youForum: Fixing WordPress
In reply to: Error Enqueing child theme stylesheetsThank you but unfortunately the code is well written on the function.php file.
There was only a copying error here.<?php function my_theme_enqueue_styles() { $parent_style = 'wp-bootstrap-4'; // This is 'wp-bootstrap-style' for the wp bootstrap theme. wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( $parent_style ), wp_get_theme()->get('Version') ); } add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
This is the code, it’s correct?
Forum: Fixing WordPress
In reply to: Error Enqueing child theme stylesheetsI also tried to import parent stylesheet placing the following code on the child stylesheet
@import url ('../themeName/style.css');
Forum: Plugins
In reply to: [WP Responsive Recent Post Slider/Carousel] Shortcode doesn’t workNow works
thanksForum: Plugins
In reply to: [Scripts n Styles] It doesn’t work anymoreI don’t know what happened but now works, I didn’t make any changes
???? ??
however thanks for the tip
byeForum: Plugins
In reply to: [Scripts n Styles] It doesn’t work anymoreWith chrome in the source-view i can see the css style in the <head>, so plugin works on. Any suggestions?