Include Bootstrap 3.0 in GDF

This topic contains 3 replies, has 2 voices, and was last updated by  Holiday Monk 9 years, 2 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #32980

    Holiday Monk
    Free User
    Post count: 23

    Hi,

    I want to include bootstrap in my theme.

    Since there is no child theme for GDF, I could not implement it.

    Please help me in implementing from bootstrapcdn ( http://www.bootstrapcdn.com/ )

    Is this function proper to insert in theme GDF->library->geodirectory_framework.php

    function theme_add_bootstrap() {
    wp_enqueue_style( ‘bootstrap-css’, get_template_directory_uri() . ‘/css/bootstrap.min.css’ );
    wp_enqueue_style( ‘style-css’, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_script( ‘bootstrap-js’, get_template_directory_uri() . ‘/js/bootstrap.min.js’, array(), ‘3.0.0’, true );
    }

    add_action( ‘wp_enqueue_scripts’, ‘theme_add_bootstrap’ );

    Thanks in advance.

    #33020

    Simone
    Expired Member
    Post count: 3515

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #33786

    Holiday Monk
    Free User
    Post count: 23

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #33788

    Holiday Monk
    Free User
    Post count: 23
    This reply has been marked as private.
Viewing 4 posts - 1 through 4 (of 4 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket