Best Premium and Free WordPress Themes › Forums › SuperMagPro › Child Theme, Theme Installation Guide, CSS broken
- This topic has 7 replies, 3 voices, and was last updated 7 years, 3 months ago by
acmesupports.
-
AuthorPosts
-
February 19, 2016 at 6:10 pm #4822
James
ParticipantWe 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?
February 19, 2016 at 6:26 pm #4828acmesupports
ModeratorHello 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 SupportsFebruary 19, 2016 at 6:36 pm #4827acmethemes
KeymasterHello 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,
AcmeThemesFebruary 19, 2016 at 7:25 pm #4826James
ParticipantThe 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.
February 19, 2016 at 7:53 pm #4825James
ParticipantResolved. The server PageSpeed caching was causing the css to not load properly.
February 19, 2016 at 7:55 pm #4824acmethemes
KeymasterYes 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,
AcmeThemesFebruary 19, 2016 at 7:58 pm #4823acmethemes
KeymasterVery nice to hear your problem solved :).
Best Regards,
AcmeThemes -
AuthorPosts
- You must be logged in to reply to this topic.