Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • liammitchell
    Participant

    @liammitchell

    When using wp_enqueue_scripts I should set a higher priority number.
    But need to remove from parent themes css enqueue first, maybe something like this will work.

    
    /**
     * Proper way to enqueue scripts and styles
     */
    function it_company_child_theme_scripts() {
      wp_dequeue_style('bootstrap'); // from parent theme
      wp_deregister_style('bootstrap');
      wp_enqueue_style('bootstrap', get_template_directory_uri().'/css/bootstrap.css', 10);
    }
    add_action( 'wp_enqueue_scripts', 'it_company_child_theme_scripts' );
    

    liammitchell
    Participant

    @liammitchell

    Okay looks like I can extend BP_Component which can then have rewrites, screens and actions.

    How To Create A Custom BuddyPress Component In A Plugin

    BP_Component

    Great 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
Skip to toolbar