Replace main stylesheet

Community Forums Forums Design Tips and Tricks Replace main stylesheet

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Susan 6 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #91045

    taylorishere
    Participant
    Post count: 8

    Hi there.

    I’m having trouble replacing my stylesheet for a page I’ve created called “blog” (where the page “blog” will be where the posts will live.)

    Here’s my code, however, it’s not catching.

    On a different page that is NOT the posts page, this code works.

    Any thoughts?

    if ( is_page_template('newstemplate.php') ){
    remove_action('genesis_meta', 'genesis_load_stylesheet');
       /** Load Custom CSS File */
    add_action( 'wp_enqueue_scripts', 'maj_load_custom_css' );
    function maj_load_custom_css() {
        wp_enqueue_style( 
        	'newstemplate-css', 
        	CHILD_URL . '/newstemplate.css', 
        	array(), 
        	PARENT_THEME_VERSION 
        );
    }
    }
    #100427

    Susan
    Moderator
    Post count: 9254

    As you posted this a while ago, I hope you got your issue resolved. If not, please let me know, and I will take a look (or escalate if I cannot help).

    If it is resolved, please mark it resolved, so that the thread can be closed.

    Thanks!


    Susan @ Graphically Designing I offer theme customizations I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.