• Resolved bobbyblank

    (@bobbyblank)


    I can’t figure out for the life of me how to edit a line of code in the domainname.com/wp-content/themes/tortuga/css/flexslider.css file and insert it into the child-theme. I see a ton of results for editing a child-theme’s subfolder, but I’m not very tech savvy and immediately become lost in the jargon. Would someone mind giving me a step-by-step instruction on how to edit (call or whatever) a subfolder within a child theme? I made the appropriate edits and inserted the proper path in the child-themes folder, but I don’t see any changes which were applied. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi, did you enqueue that stylesheet properly? When you look through a source code of your page, is there a call for that file in your child theme?

    Thread Starter bobbyblank

    (@bobbyblank)

    No, I don’t believe so. I’m not familiar with enqueuing stylesheets at all.

    Is that what’s the “functionx.php” file is for?

    If so, all I have is this –

    <?php
    /*
    * Connect Style Sheets
    */
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    wp_enqueue_style( 'child-style', get_stylesheet_uri(), array( 'parent-style' ) );
    }
    ?>

    I don’t even know what the above code does – when I initially created my child-theme based on a WordPress tutorial, it didn’t work properly. I don’t recall the exact error, but I researched my error and found the above code for another theme. I changed a few lines to match my theme’s details and it seems to be working fine.

    Theme Author ThemeZee

    (@themezee)

    Hi there,

    Thanks for using Tortuga.

    If you only want to change one line I recommend to override the CSS in the child theme’s style.css. You can use the !important tag on your CSS rule to make sure it is overwritten at all cases.

    Otherwise you would have to dequeue the original flexslider.css and enqueue your own one. I don’t recommend that because you will lose any change we make to the original file with updates.

    Best,
    Thomas

    Good day @themezee. Is there a Tortuga child theme I can download through you? The child theme I’ve created (and I’ve created many), doesn’t seem to function well for your site. Are there specific files I’m unaware of that I need to copy into the child-theme folder for Tortuga?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Edit Child Theme Subfolders’ is closed to new replies.