• Resolved pbjwordpress

    (@pbjwordpress)


    Hi! I followed the documentation when creating a custom css file by placing the custom.css in the plugin folder > custom. Upon update, the file has disappeared. Can you clarify where the plugin will be looking for this file so it does not get deleted when updating?

Viewing 1 replies (of 1 total)
  • Plugin Author sevenspark

    (@sevenspark)

    Hi pbjwordpress,

    My apologies, there is a disconnect as that custom.css option is intended for the Pro version’s update system, where it is paired with an auto-backup & auto-restore of that file. Unfortunately that’s not part of the Lite version and the custom.css shouldn’t be an setting there, sorry about that!

    To add a custom stylesheet, I’d suggest using this code:

    function my_custom_shiftnav_style() {
        $stylesheet_url = get_stylesheet_directory_uri() . '/css/shiftnav-custom.css'; // Make sure this matches your stylesheet's URL
        wp_enqueue_style( 'custom-shiftnav-css', $stylesheet_url, array( 'shiftnav' ), '1.0' );
    }
    add_action( 'wp_enqueue_scripts', 'my_custom_shiftnav_style' );

    and placing a stylesheet called shiftnav-custom.css in your child theme’s css/ directory.

    That way the file won’t get deleted when you update.

    Then you can just disable the ShiftNav skin in the settings.

    Hope that helps and sorry for the trouble!

Viewing 1 replies (of 1 total)
  • The topic ‘Where should custom.css go?’ is closed to new replies.