Home Forums Glissando Edits to CSS in Child Theme don't appear on site

This topic contains 12 replies, has 4 voices, and was last updated by  Bas Schipper 3 months ago.

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #43723

    banxblock
    Participant

    Hello,
    I created a child theme of Glissando using the ‘one click child theme’ plugin, which is how I always do it. However, any CSS modifications that I add to the child theme stylesheet aren’t appearing on the site at all. I am happy to set up an admin account for you to log in and see what the problem might be- I am on a very tight timeline to get this done. Any help would be appreciated!

    My site is http://banxblock.net/

    Brooke

    #43726

    Joshua
    Keymaster

    Is the child theme active right now? I don’t see any indication of it.

    #43727

    banxblock
    Participant

    Hi Joshua,
    It is active. Like I said, I used the one-click child theme plugin, which I’ve used dozens of times, so I’m not sure what the issue would be?

    #43728

    Joshua
    Keymaster

    You can private message me your login details and I’ll take a look.

    #43729

    banxblock
    Participant
    This reply has been marked as private.
    #43737

    Joshua
    Keymaster

    Everything was created correctly but the plugin doesn’t take any methods to ensure the child stylesheet is registered. Pretty weird for a plugin that’s job is to make a style child sheet. Anyway, I added this to your child theme’s functions.php

    function luxe_child_scripts() {
        wp_enqueue_style( 'child-stylesheet', get_stylesheet_uri()  );
    }
    
    add_action( 'wp_enqueue_scripts', 'luxe_child_scripts' );

    And your child styles are now loading.

    #44247

    Korsmakolnikov
    Participant

    I resume this topic because I’ve an issue related. Trying to make a child from glissando it is strange that some style actually apply to the site and some not.

    child function.php is:

    function theme_enqueue_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/css/ie.css' );
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/css/style.css' );
        wp_enqueue_style( 'child-style',
            get_stylesheet_directory_uri() . '/style.css',
            array('parent-style')
        );
    }
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    

    Inspecting elements it seams that my .luxe-post-details span {display: none;} is overwritten by .luxe-post .luxe-post-date {display: block} from _base.scss… Can you help me?

    #44253

    Joshua
    Keymaster

    Sure. Can you link to your site please?

    #46591

    Bas Schipper
    Participant

    Hello, I have a related quetion. I’m trying to create a child theme for my glissando site, but for some reason, I cannot make it work. The child them does not show up correctly when I activate it.

    I followed these instructions: https://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme

    Is it possible that you have a look at my style.css and function.css to spot the probably obvious bug(s)?
    Site: http://www.mijnonlineafdeling.nl

    I created glissando-child directory and put in functions.php and style.css.

    Content of functions.php is as follows:
    <?php
    function my_theme_enqueue_styles() {

    $parent_style = ‘stylesheet';

    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 ),
    wp_get_theme()->get(‘Version’)
    );
    }
    add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
    ?>

    Content of style.css is as follows:
    /*
    Theme Name: Glissando Child
    Theme URI: http://themeluxe.com/themes/glissando-child
    Description: Premium Responsive Retina Ready WordPress Child Theme
    Author: ThemeLuxe
    Author URI: http://themeluxe.com
    Template: glissando
    License: GNU General Public License version 3.0
    License URI: http://www.gnu.org/licenses/gpl-3.0.html
    Version: 1.2.1
    Tags: black, white, two-columns, full-width-template, translation-ready, custom-colors
    Text Domain: glissando-child
    */

    /*—————————————————————

    This theme uses SCSS to create its base styles.
    Styles are located in the /css folder

    —————————————————————*/

    #46594

    Joshua
    Keymaster

    Hi Bas,

    It’s probably best to create your own ticket and privately post your login credentials along with it. Since your site has a ‘coming soon’ page, we won’t be able to see anything without login credentials.

    #46595

    Bas Schipper
    Participant
    This reply has been marked as private.
    #46596

    Joshua
    Keymaster

    It looks like your parent and child theme are both loading now.

    If you ever need to open another ticket, you can do so by clicking on the forum you’d like to use (“Glissando”) and scroll down to see the ticket form.

    #46597

    Bas Schipper
    Participant
    This reply has been marked as private.
Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.