Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter idomonzon

    (@idomonzon)

    I thought about !important, but it will slow the loading of the CSS and will look unprofessional.
    The child-theme is like this:

      fluida-child (folder)

    • style.css (file)
      /*
       Theme Name:   Fluida Child
       Theme URI:    https://example.com/fluida/
       Description:  Fluida Child Theme
       Author:       Ido Monzon
       Author URI:   https://example.com
       Template:     fluida
       Version:      1.0.0
       License:      GNU General Public License v2 or later
       License URI:  https://www.gnu.org/licenses/gpl-2.0.html
       Text Domain:  fluida
      */
      
      /* CSS code here */
    • functions.php (file)
      <?php
      function my_theme_enqueue_styles() {
      
        $parent_style = 'fluida-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 ),
          wp_get_theme()->get('Version')
        );
      }
      add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
    • This reply was modified 7 years, 2 months ago by idomonzon.
Viewing 1 replies (of 1 total)