Site logo

[Resolved] Seeing a few styles showing differently when using a child theme

Home Forums Support [Resolved] Seeing a few styles showing differently when using a child theme

Home Forums Support Seeing a few styles showing differently when using a child theme

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1587339
    Jung

    Hi, I am using my child theme and I am noticing some elements are looking different than the original site.

    For example, I am using the site library theme — vinyasa — and I see the cover image has a white space on both sides (margins) and some buttons are not styled properly.

    /*
    Theme Name: GeneratePress Child
    Theme URI: https://generatepress.com
    Author: Tom Usborne
    Author URI: https://tomusborne.com
    Template: generatepress
    Version: 3.0.2
    Requires at least: 4.5.0
    Tested up to: 5.5
    Requires PHP: 5.4.0
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Text Domain: generatepress
    */

    @import url(“../generatepress/assets/css/all.css”);

    As you can see I only have one line of @import, which is connected to all.css. Are there more stylesheets to connect in order to fully match the appearance of the parent theme?

    Thank you.

    #1587489
    Leo
    Staff
    Customer Support

    Hi there,

    Did you copy the CSS in the Additional CSS field in the customizer from the parent theme to the child theme’s style.css?

    Let me know 🙂

    #1587692
    Jung

    Okay, I placed the CSS field of the customizer from the parent theme into the child theme customizer and it did the job!

    Thank you.

    To come to the conclusion, I did not even need to enqueue with @import right? I read the documentation and it says using @import is not recommended.

    #1587933
    David
    Staff
    Customer Support

    Hi there,

    thats correct you do not need to enqueue – GP does that for you.

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