Child Theme, Theme Installation Guide, CSS broken - Acme Themes

Best Premium and Free WordPress Themes Forums SuperMagPro Child Theme, Theme Installation Guide, CSS broken

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #4822
    James
    Participant

    We just purchased and installed this theme at 27colony.com and the CSS isn’t working completely in Chrome.

    Any thoughts on where to look for a fix for this?

    #4828
    acmesupports
    Moderator

    Hello James,
    Thanks for using our theme SuperMagPro. Are you currently working on your site? Did you changed some code on theme ? If so let us know, there is no any bug on theme because we set up a demo and it is working fine. Please make sure you installed the whole package of theme, no missing any files.
    If you have any problem more, please let us know.
    Best Regards,
    Acme Supports

    #4827
    acmethemes
    Keymaster

    Hello James,

    If you want any help to setup the theme in your site, please let us know, we will do that by ourselves.

    Best Regards,
    AcmeThemes

    #4826
    James
    Participant

    The theme is setup with a child theme. The child theme’s url is weird:

    http://27colony.com/wp-content/themes/fingerlakes1/A.style.css,qver=8eb6c14d8798798d610cea8b369be279.pagespeed.cf.1B2M2Y8Asg.css

    There’s a prefix “A.” in front of style.css which is preventing it from loading correctly. The qver added with the comma is also very odd.

    We chose your theme because you say that the theme is child theme compatible and it fit all of our display requirements.

    #4825
    James
    Participant

    Resolved. The server PageSpeed caching was causing the css to not load properly.

    #4824
    acmethemes
    Keymaster

    Yes definitely our theme is child theme friendly, you can even override inner file of themes not only templates files.
    Your child theme css is blank, please write following css in the child theme style.css:

    /*
     Theme Name:   SuperMagPro Child
     Theme URI:    http://www.acmethemes.com/themes/supermagpro/
     Description:  SuperMagPro Child Theme
     Author:       Acme Themes
     Author URI:   http://www.acmethemes.com/
     Template:     supermagpro
     Version:      1.0.0
     License:      GNU General Public License v2 or later
     License URI:  http://www.gnu.org/licenses/gpl-2.0.html
     Tags:         orange, brown, yellow etc
     Text Domain:  supermagpro-child
    */

    Again in functions.php file please write following codes:

    <?php
    function suprmagpro_child_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', 'suprmagpro_child_enqueue_styles' );
    ?>

    Here is further docs https://codex.wordpress.org/Child_Themes.

    this should fix the problems.
    if you again have any problem please feel free to ask.

    Best Regards,
    AcmeThemes

    #4823
    acmethemes
    Keymaster

    Very nice to hear your problem solved :).

    Best Regards,
    AcmeThemes

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.