Tricky question on setting a cookieless domain

This topic has 20 replies, 3 voices, and was last updated 7 years, 2 months ago ago by Olga Barlow

  • Avatar: David Henry
    David Henry
    Participant
    September 1, 2017 at 15:29

    Hi Guys,

    we’ve set up a cookie-less domain and it’s working a treat except two files don’t load any more.

    It’s set like this:

    define(“WP_CONTENT_URL”, “https://cdn.spindizzyrecords.com”);
    define(“COOKIE_DOMAIN”, “stage.spindizzyrecords.com”);
    define(“WP_PLUGIN_URL”, “https://cdn.spindizzyrecords.com/plugins”);

    for some reason fontawsome doesn’t load, I’m pretty sure it’s there though:

    https://cdn.spindizzyrecords.com/wp-content/themes/xstore/fonts/fontawesome-webfont.woff2?v=4.7.0

    Just to note: https://cdn.spindizzyrecords.com is set to the folder /wp-content

    any ideas what’s going on?

    David

    19 Answers
    Avatar: David Henry
    David Henry
    Participant
    September 4, 2017 at 14:16

    anyone there know how to fix this?

    Avatar: laranz
    Laranz
    Participant
    September 5, 2017 at 05:56

    Hi,

    Try this in your .htaccess file,

    <IfModule mod_headers.c>
        Header set Access-Control-Allow-Origin "*"
    </IfModule>

    And then still it didn’t load means, use this in your functions.php , so that we can load font-awesome from CDN,

    add_action( 'wp_enqueue_scripts', 'prefix_enqueue_awesome' );
    function prefix_enqueue_awesome() {
    	wp_enqueue_style( 'prefix-font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css', array(), '4.0.3' );
    }

    Let us know,

    Thanks,
    laranz.

    Avatar: David Henry
    David Henry
    Participant
    September 5, 2017 at 08:59

    Thanks Laranz, that’s working for some of the icons (search icon).

    But now I see that xstore-icons is also loading, this includes the cart/bag and the search close.

    I’ve tried adding this:
    wp_enqueue_style( 'prefix-xstore-icons', 'xstore-icons.css', array(), '4.0.3' );

    and putting a new file called xstore-icons.css in my child theme with the paths to the fonts changed to absolutes. It hasn’t worked.

    Any ideas?

    Avatar: laranz
    Laranz
    Participant
    September 6, 2017 at 04:25

    Hi,

    Can you pass us the WP Login details in a Private content, so that I can check what is the issue. Or pass us your child theme, so that I can debug it.

    Let us know,

    Thanks,
    laranz.

    Avatar: David Henry
    David Henry
    Participant
    September 6, 2017 at 10:36

    I’ve set up up Laranz, you’ll get me on skype too if you need me.

    Please, contact administrator
    for this information.
    Avatar: David Henry
    David Henry
    Participant
    September 7, 2017 at 13:40

    more details here…

    Please, contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    September 8, 2017 at 16:50

    Hello,

    Check now, please.

    Regards

    Avatar: David Henry
    David Henry
    Participant
    September 8, 2017 at 19:05

    Thanks that works but I see 302 recirects going on from urls I don’t recognise (see here: http://i.share.pho.to/bea99181_o.png)

    Plus there is some odd css issues like tiny writing and menu dropdowns being very narrow.

    Can I ask what changes you made?

    Avatar: David Henry
    David Henry
    Participant
    September 8, 2017 at 19:31

    I don’t trust those redirects, I’m scanning the site.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    September 11, 2017 at 15:58

    Hello,

    I have tested your site and did not found these redirects.

    Regards

    Avatar: David Henry
    David Henry
    Participant
    September 11, 2017 at 16:05

    thanks Olga, yes, the site had malware injected but has since been cleaned.

    There are still some odd css issues like tiny writing and menu dropdowns being very narrow. here’s an example:http://i.share.pho.to/3a029218_o.png

    I can fix these myself but it would be better if I knew why you made them.

    Can you fix them?

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    September 11, 2017 at 16:53

    Hello,

    I see the following code in your custom CSS http://prntscr.com/gjuug7 it make the problem with font-size. We did not add that code. Once you remove it font size will be ok.

    Regards

    Avatar: David Henry
    David Henry
    Participant
    September 25, 2017 at 13:16

    Hi Guys, the malware is completely removed.

    I’ve noticed that icons are missing in the admin too, mainly the woocommerce icons, how do I fix these?

    see:
    https://screenshots.firefoxusercontent.com/images/bc7a805b-eb27-4e34-8aea-c2f244556198.png
    https://screenshots.firefoxusercontent.com/images/84ad5d04-8b77-42a0-b96f-dbaef8f35af1.png

    Avatar: David Henry
    David Henry
    Participant
    September 25, 2017 at 13:17
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    September 25, 2017 at 16:39

    Hello,

    Looks like icons font is missing or is blocked. But I can’t tell you more without admin panel and FTP access. Can we use the one you provided above?

    Regards

    Avatar: David Henry
    David Henry
    Participant
    September 26, 2017 at 12:43

    both already in this thread as you fixed this issue on the front end, I’ve added the details again in the private info box

    Please, contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    September 26, 2017 at 13:48

    Hello,

    I can’t login to your Dashboard because of invalid username http://prntscr.com/gpw1uu

    Regards

    Avatar: David Henry
    David Henry
    Participant
    September 26, 2017 at 13:57

    please try now (my fault, sorry)

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    September 26, 2017 at 16:19

    Hello,

    It’s because of the Access-Control-Allow-Origin (CORS origin) Issue http://prntscr.com/gpy7wf
    Read this post to fix it http://crunchify.com/how-to-fix-access-control-allow-origin-issue-for-your-https-enabled-wordpress-site-and-maxcdn/
    Problem is not related to our theme.

    Regards

  • Viewing 20 results - 1 through 20 (of 20 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.