[Support request] Loading Stiles Problem

Home Forums Support [Support request] Loading Stiles Problem

Home Forums Support Loading Stiles Problem

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #397794
    CRISTOBAL

    Good morning,

    We are using Types on a webpage, and types load bootstrap AFTER generatepress styles, so styles from Bootstrap prevails over CUstomizer settings.

    Is there a way to change this make GP load with prority?

    #397989
    Tom
    Lead Developer
    Lead Developer

    Is there a specific file you’re needing to load later?

    #397992
    CRISTOBAL

    All styles.

    It is WP Types is loading bootstrap after the customized options of GP, so, for example, H1 font size gets overwritten.

    #398243
    CRISTOBAL

    Any thougts?

    You can see it at cristobalmz.es/arraez

    First GP Heading styles are loaded, then Bootstrap, and so I had to force H1 styles with CSS.

    #398262
    Tom
    Lead Developer
    Lead Developer

    You could do this:

    add_action( 'after_setup_theme', 'tu_move_scripts' );
    function tu_move_scripts() {
        remove_action( 'wp_enqueue_scripts', 'generate_scripts' );
        add_action( 'wp_enqueue_scripts', 'generate_scripts', 100 );
    }

    The function name will likely change in GP 2.0, so keep in mind you’ll need to tweak the function once that happens 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.