Results 1 to 2 of 2

Thread: The following is showing on my website header

  1. #1
    Thread Starter
    Expired Customer addis's Avatar
    Join Date
    Mar 2016
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    The following is showing on my website header

    After creating a child theme and adding this code to my functions.php file the same Code appears on my website

    the code is below(given by dimitris)
    add_action( 'wp_enqueue_scripts', '_my_child_theme_styles' ); /** * Enqueue parent theme styles considering styles dependencies. */ function _my_child_theme_styles() { // Parent styles that need to be loaded before the child theme styles. Replace 'modern.css' with the parent style you're using. $parent_styles = array( 'parent_style_1' => 'style.css', 'parent_style_2' => 'styles/modern.css' ); // Enqueue parent styles using the custom handles and considering styles dependencies. foreach( $parent_styles as $handle => $style ) { wp_enqueue_style( $handle, get_template_directory_uri() . '/' . $style, array( 'hrb-normalize', 'hrb-foundation' ) ); } wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array_keys( $parent_styles ) ); } ?>

  2. #2
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,617
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Dimitris website not showing
    By noticedvantage in forum Help Using Vantage (Legacy)
    Replies: 4
    Last Post: November 18th, 2013, 05:30 AM
  2. [SOLVED] Website name not appearing in header
    By digitalark in forum Report Vantage Bugs (Legacy)
    Replies: 12
    Last Post: August 1st, 2012, 05:31 PM
  3. How to change the header of my website classipress
    By jamyten in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: March 20th, 2012, 09:43 AM
  4. How to change the header of my website classipress
    By jamyten in forum ClassiPress General Discussion
    Replies: 1
    Last Post: March 20th, 2012, 09:43 AM
  5. Same header as my original website
    By mrHAT in forum JobRoller General Discussion
    Replies: 2
    Last Post: February 27th, 2011, 08:17 AM