• Resolved ac1643

    (@ac1643)


    Hi there, could you tell me where the user inputted custom CSS is stored, whether in a file, database or something else? I’m looking to see if there is a way I can change the custom CSS across all websites automatically rather than logging into each one and doing it manually. Do you think this is possible based on the plugin setup?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author cusmin

    (@cusmin)

    Hi,

    If you’re looking for only custom CSS from the advanced field, you can use this option from wp_options table “agca_custom_css”

    If you look for all other custom CSS, you’d need to search for all fields that start with “agca_” keywoard in wp_options table

    You can either create a SQL query to fetch all of that data on DB level, or if you prefer more UX way, you can use wp-cli where you can fetch and push wp options values, and create a script that will do this automatically for you from the command line.

    This way you can create an automatic import/export script using wp-cli, and share across different environments and also automate it in a process if you handle the high volume of WP sites.

    Otherwise, if there’s just a handful of sites you manage, export/import feature in Advanced tab is maybe a better option.

    Hope this helps!

    • This reply was modified 1 year, 8 months ago by cusmin.
    • This reply was modified 1 year, 8 months ago by cusmin.
    Thread Starter ac1643

    (@ac1643)

    Thanks for that comprehensive response, just what I wanted to know. Really appreciate it. I’ve got about 30 sites so looking to create an automated solution. I haven’t got around to using wp-cli yet so now seems like a good time, and if there’s any problem with that I’ll use SQL.

    • This reply was modified 1 year, 8 months ago by ac1643.
    Plugin Author cusmin

    (@cusmin)

    Thanks for the update! Yes wp-cli is probably the best way to do this since you have 30+ sites, and with the automation it’s easier to maintain it later, in case you want to update one site and apply the change to all others. Good luck!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom CSS location’ is closed to new replies.