WordPress.org

Forums

ShiftNav - Responsive Mobile Menu
[resolved] Custom skin with custom.css (6 posts)

  1. Pixelstyle
    Member
    Posted 1 year ago #

    How does the custom css skin option work? The list on the options says "Custom (custom.css)", but I can't find that file in the plugin folder. I do find a "custom-sample.css". Is that the file I need to edit if I choose the custom skin? Or do I need to move it somewhere?

    Thanks in advance!

    https://wordpress.org/plugins/shiftnav-responsive-mobile-menu/

  2. sevenspark
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Pixelstyle,

    It works like wp-config-sample.php - you'll just want to rename custom-sample.css to custom.css and then you'll be good to go. The reason I don't include a custom.css is because then every time you update the plugin, your custom CSS would be overwritten :)

    Hope that helps!

    Chris

  3. b-summers
    Member
    Posted 8 months ago #

    Won't renaming the 'custom-sample.css' in your plugin folder still be overwritten when an update occurs?

  4. sevenspark
    Member
    Plugin Author

    Posted 8 months ago #

    That is true, b-summers. It was written with the Pro version in mind, which would be updated via FTP and overwriting only those files that exist in the default install, so custom.css would remain intact. For now, you would need to manually backup and restore the custom.css file, though I'm working on automating that for when the Pro version includes automatic updates. Thanks for pointing that out though!

    Best,

    Chris

  5. b-summers
    Member
    Posted 8 months ago #

    Thanks Chris,

    I assume there is no way to do something like WooCommerce does, where you create a folder in your template files, and just add the CSS in there, to avoid being overwritten?

  6. sevenspark
    Member
    Plugin Author

    Posted 8 months ago #

    You could always add a custom stylesheet via your child theme, you'd just also need to enqueue it via your functions.php. There isn't a specific folder in the child theme that'll automatically get picked up, but it's an interesting idea to look into :)

    Best,

    Chris

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • ShiftNav - Responsive Mobile Menu
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.