- This topic has 6 replies, 2 voices, and was last updated 6 years, 6 months ago by .
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
I want to my own style sheet to Executice Pro Theme must be the last in order of style sheet - so that it overwrites the other style sheets.
How do I do it ?
Now use Genesis Theme settings - Headers script, and here are several style sheets for.
Can't get it work ;-(
I have put it in via Genesis Header Scripts:
<link rel='stylesheet' type='text/css' href='http://nippin-wp.prolightweb.dk/wp-content/themes/executive-pro/nippin_haver.css' media="all" />
You have to enqueue the style sheet. You can't use a link if you want to change the order. Enqueuing the script allows WordPress to manage it. Using a link takes control away from WordPress.
Do you have a link telling me how to do this - have try different ways - didn't work ;-(
First off all - thanks for the help 😉
When I try to change the css call, this way:
function wp_enqueue_style( 'nippin-haver', get_template_directory_uri() . 'nippin_haver.css',false,'1.1','all');
I get this error:Parse error: syntax error, unexpected ''nippin-haver'' (T_CONSTANT_ENCAPSED_STRING), expecting variable (T_VARIABLE) in /home/www/nippin-wp.prolightweb.dk/wp-content/themes/executive-pro/functions.php on line 194
The nippin_haver.css is in the same directory as the style.css and the functions.php
My knockledge about php is wery small 😉
© 2023 WPEngine, Inc.