• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Determine Stylesheet order

Welcome!

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.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Determine Stylesheet order

This topic is: not resolved
  • This topic has 6 replies, 2 voices, and was last updated 8 years, 3 months ago by fotograf.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • February 13, 2017 at 11:55 am #201052
    fotograf
    Participant

    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.

    February 13, 2017 at 12:32 pm #201056
    Victor Font
    Moderator

    Here you go: https://victorfont.com/change-genesis-child-theme-style-sheet-load-order/


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    March 6, 2017 at 2:49 am #202543
    fotograf
    Participant

    Hi
    Can't get it work ;-(

    The test-site: http://nippin-wp.prolightweb.dk
    But when I go for these: http://nippin-wp.prolightweb.dk/galleri/
    the css i want as the last - dos'nt show as the last: nippin_haver.css in line 51

    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" />

    Best regards
    Keld

    March 6, 2017 at 8:45 am #202568
    Victor Font
    Moderator

    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.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    March 8, 2017 at 2:19 pm #202723
    fotograf
    Participant

    Hi
    Do you have a link telling me how to do this - have try different ways - didn't work ;-(

    Best regards
    Keld

    March 8, 2017 at 10:31 pm #202736
    Victor Font
    Moderator

    https://developer.wordpress.org/reference/functions/wp_enqueue_style/


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    March 12, 2017 at 4:27 am #202921
    fotograf
    Participant

    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 😉

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble