-
AuthorPosts
-
March 22, 2015 at 12:40 pm #232875
Hi ,
my site is http://www.escapehour.co.uk
ive only ever been able to see the icons on a mobile device. now i want to add facebook and twitter to my nav bar.
i have followed what i thought were the instructions and have the same problem as the other icons.. the link is there but no icons show.
thanks for any help.
steve
March 22, 2015 at 8:19 pm #233071Hey Steve,
This is because of Access-Control-Allow-Origin. Please see http://enable-cors.org/ for more details about that.
Thanks.
March 23, 2015 at 2:34 pm #233596sorry but i am not a programmer. I really dont understand what any of that means. If it is because of Access-Control-Allow-Origin. do I have to change some code or something? is there a setting to change? i am using x theme because i am not a programmer. i just dont understand why if a am using your short codes , the icons wont show. it seems pointless to me to have them if they wont work.
March 23, 2015 at 5:39 pm #233725Hi there,
My apologies foe the confusion. It means that your hosting provider doesnβt allow for cross origin (cross domain requests are disabled).
Could you please try adding the following rule into your .htaccess file and see if that works for you.
<IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" </IfModule>
Alternatively, try adding the following code into your functions.php file.
add_action ('init', function(){ header("Access-Control-Allow-Origin: *"); });
Hope that helps.
March 24, 2015 at 2:14 am #233884thanks, the first suggestion worked perfectly. im afraid that the original link to the website suggested will only make non programmers extremely confused. thanks again.
March 24, 2015 at 9:26 am #234089You’re welcome! π
March 24, 2015 at 9:56 am #234123I have tried both options but none seem to work for me π Any more suggestions?
March 24, 2015 at 2:47 pm #234304Hi Carel,
Thanks for writing in! I’ve just responded to your earlier reply on this thread: https://theme.co/x/member/forums/topic/social-icons-and-dropdown-arrows-not-working/#post-234107
Hope that will help. π
Thanks!
March 30, 2015 at 4:34 am #237919Hi!
I found out that in the console i too have this error: 2(index):1 Font from origin ‘http://url-a.com’ has been blocked from loading by Cross-Origin Resource Sharing policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://url-b.com’ is therefore not allowed access.
I have a strange setup where the wordpress files are hosted on the hosting space of site A + WP-admin runs there but i view the site on site B. It does work on the contact page, because this one has the formatting of url-a.com/contact/ , so that one is on the original source domain.
Thank you!
March 30, 2015 at 4:40 am #237924Hi,
Regretfully, this particular issue is outside the scope of our support as this is not related to an issue with the theme and instead has to do with your wordpress set-up. As such, you will need to investigate this particular issue on your own or seek help from a developer should you not feel comfortable making these changes yourself. If you have any further questions about the theme, we are more than happy to provide you with assistance on these inquiries.
Thank you for your understanding.
March 30, 2015 at 4:55 am #237930I understand, but thankfully there is no more issue, i found the problem with your help! Thanks again.
March 30, 2015 at 4:56 am #237932You are welcome.
-
AuthorPosts