Support – DesignThemes
  • Home
  • Knowledge Base
  • Forums
  • Request Demo
  • Videos
  • Documentation
MY PROFILE

Support Forums

Home/Forums/Multi-Purpose/Vintage Immersed Multipurpose WordPress Theme/Issues With Child Theme

Issues With Child Theme

  • 7 years, 6 months ago keyboardcook
    Member

    Rather than explain etc, I have set up two site.

    Both with same configuration.

    One is VintageImmersed. The other is a Child theme of Vintage Immersed.

    Main Site: test.keyboardcook.com

    Child site: child.keyboardcook.com

    Please look at how the responsive element of the homepage do not work on the child theme.

     

    I have done a text compare of the source codes of both homepages when loaded into browser. No real difference except for normal behaviour of child style sheet being called.

    Any ideas?

    *******************************

    Data in child style.css

    *******************************

    /*

    Theme Name:   Vintage Immersed Child

    Theme URI:    http://wedesignthemes.com/themes/vm/

    Description:  Vintage Immersed is a pixel perfect and rich WordPress Theme made to promote fashion portfolio, photography, furniture and interior design profiles. The flexibility of the theme will help to customize the design to suit variety of themes. The elegant design is carved in Photoshop using the 960 grid system. It is cross browser compatible.

    Author: designthemes

    Author URI:   http://themeforest.net/user/designthemes/

    Template:     VintageImmersed

    Version: 2.7

    License:      GNU General Public License v2 or later

    License URI: http://www.gnu.org/licenses/gpl-2.0.html

    Tags: yellow, blue, green, gray, red

    Text Domain:  vm-child

    */

    *******************************

    Data in child functions.php

    *******************************

     

    function theme_enqueue_styles() {

     

    $parent_style = ‘parent-style’;

     

    wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );

    wp_enqueue_style( ‘child-style’,

    get_stylesheet_directory_uri() . ‘/style.css’,

    array( $parent_style )

    );

    }

    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );

    *******************************

    7 years, 6 months ago keyboardcook
    Member

    Okay. I’ve answered this myself, so posting the solution.

     

    The issue id the order in which stylesheets load. The theme breaks when one enqueues as per wordpress standards.

     

    A workaround is:

    a) put a header.php in the child theme. Just after line 19 (” rel=”stylesheet” type=”text/css” />) (no comment) and before the line  place this code:

    /style.css” rel=”stylesheet” type=”text/css” />

    (again. no comment)

    b) remove the funtion I called  theme_enqueue_styles() from your functions.php.

     

    It’s a hack, but sure….no comment.

    7 years, 6 months ago keyboardcook
    Member

    *

     

    b) remove the function I called theme_enqueue_styles() from your functions.php

    7 years, 6 months ago DT Team !!!
    Keymaster

    Hi.,

    OK, Thank you for the solution. We will check the issue and update it.

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘Vintage Immersed Multipurpose WordPress Theme’ is closed to new topics and replies.

Login

Log In
Register Lost Password

Topic Views List

  • Most popular topics
  • Topics with no replies

Recent Forum Topics

  • I don’t see the necessary plugins
  • ERROR in theme
  • ERROR in theme

Tags

blog bug button color contact form courses css Demo Demo content error events footer gallery header homepage icon box icons images import Installation layerslider LMS logo menu mobile page builder plugin plugins portfolio responsive revolution slider search sensei shortcode shortcodes sidebar slider Theme translate translation update veda visual composer woocommerce wpml

Working Hours

We Love to Deliver Useful and Easy to Customize WordPress Themes for Our Clients…

Monday to Friday

9.00 A.M. to 6.00 P.M.(IST) UTC/GMT +05:30

We aim to answer all questions within 24 hours.In some cases the waiting time can be extended to 48 hours.Support requests sent during weekends or public holidays will be processed on next Monday or the next business day.

We appreciate your patience and thank you for understanding.

Quick Links

  • Home
  • Help Videos
  • Forums
  • Request Demo
  • Back End Demos
  • Subscription
  • Documentation
  • Updated Plugins
  • Customization
  • Elementor Pro
  • Elementor Pro – Shortcode Test
  • Hot Spot
  • Gowtham
  • Pricing Table
  • Tabs

Search

Social

© Copyright Design Themes.
Cleantalk Pixel