This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Path to CSS Multisite

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #19709
    peterboehmpeterboehm
    Participant

    Hi,

    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=COgNVV

    #19713
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    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)

    #19716
    peterboehmpeterboehm
    Participant

    You cannot access this content.

    #19724
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    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.

    #19755
    peterboehmpeterboehm
    Participant

    Yes! Works fine. Thank you. Maybe this would be good as an optional setting in the plugin.

    #19756
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    #19758
    peterboehmpeterboehm
    Participant

    ok I added the code! thank you so much! you can mark the topic as resolved.

    #19763
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Path to CSS Multisite’ is closed to new replies.