Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Path to CSS Multisite
- This topic has 7 replies, 2 voices, and was last updated 7 years, 7 months ago by
Ernest Marcinko.
-
AuthorPosts
-
October 31, 2018 at 5:26 pm #19709
peterboehm
ParticipantHi,
I am running Ajaxsearchpro on a multisite install with three sites. Each has an individual Domain. The problem is that there is a CSS File for Ajaxsearchpro loaded only from the Base Domain on the other Domains (see screenshot). This is a Problem because of EUGDPR… Is there a way to load the CSS File per Domain?
The Path would work with every Domain:
https://www.vgib.bayern/wp-content/uploads/asp_upload/style.instances.css?ver=COgNVV
https://www.illschwang.eu/wp-content/uploads/asp_upload/style.instances.css?ver=COgNVV
https://www.birgland.eu/wp-content/uploads/asp_upload/style.instances.css?ver=COgNVVNovember 1, 2018 at 8:34 am #19713Ernest Marcinko
KeymasterHi,
Because the instance CSS file is dynamically generated depending on the search options, on multisite networks, this is automatically stored in the upload path, which is shared across the network.
You could turn on this option here: https://i.imgur.com/wFWJZ3z.png
This will print the stlyes directly to the head as inline styles, bypassing this dynamic CSS file.I could also suggest a modification, that would automatically try to load the instances CSS file from the current domain, but it may run into a non-existent file issue, as this file may only exist on the main domain upload path.
If I may, CSS files should not be a concern of GDPR regulations, as those are only statically served cascading stylesheet files – should not capable of collecting any information about the user. (unless there is some sort of hacky way of servers file access logging, but those are usually exceptions)
November 1, 2018 at 2:10 pm #19716peterboehm
ParticipantYou cannot access this content.
November 2, 2018 at 11:36 am #19724Ernest Marcinko
KeymasterHi!
I think you should be able to do it. One file must be replaced, and that should be it. Please make sure to have a full site back-up just in case.
1. Open up the wp-content/plugins/ajax-search-pro/includes/classes/core/class-asp-manager.php file on your server
2. Change it’s contents to this.
3. Save the file.
4. Save the search instance options as well on the plugin back-end.Hopefully this should do it.
November 5, 2018 at 11:56 am #19755peterboehm
ParticipantYes! Works fine. Thank you. Maybe this would be good as an optional setting in the plugin.
November 5, 2018 at 12:05 pm #19756Ernest Marcinko
KeymasterYou cannot access this content.
November 5, 2018 at 12:22 pm #19758peterboehm
Participantok I added the code! thank you so much! you can mark the topic as resolved.
November 5, 2018 at 12:49 pm #19763Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts
- The topic ‘Path to CSS Multisite’ is closed to new replies.