Shreesh Katyayan
Shreesh Katyayan

Reputation: 111

Wordpress Theme Customization

I am working on a project in which I need to have the wordpress theme Spark Child Theme along with functionality of bootstrap header. Is there any way to do this?

Upvotes: 1

Views: 142

Answers (3)

Vishal Gupta
Vishal Gupta

Reputation: 903

You need to enqueue the bootstrap CSS and JS file in function.php file.

Also if you need to change the CSS from the separate file so you need to enqueue the CSS file as well.

you can enqueue the file using below code:

    function pwwp_enqueue_my_scripts() {

        wp_enqueue_script( 'bootstrap-js', '//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js', array('jquery'), true); // all the bootstrap javascript goodness
        wp_enqueue_style( 'bootstrap', '//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css' );


        wp_enqueue_style( 'my-style', get_template_directory_uri() . '/style.css');
    }
    add_action('wp_enqueue_scripts', 'pwwp_enqueue_my_scripts');

Style.css is the custom/default stylesheet for WordPress.

Upvotes: 1

Mary Brown
Mary Brown

Reputation: 1

To use a header, wrap your heading in a <div> with a class of .page-header as shown below:

<div class = "page-header">
   
   <h1>
      Example page header 
      <small>Subtext for header</small>
   </h1>
   
</div>

<p>This is a sample text.This is a sample text.This is a sample text. This is a sample text.</p>

Wordpress Acool theme may be suitable for your project. You can preview this theme at https://www.coothemes.com/

Upvotes: -1

Vikas Gautam
Vikas Gautam

Reputation: 978

If you are using separate files for change css then you need to include the files in you header.php and other things accordingly you can customize

Upvotes: 1

Related Questions