Forum Replies Created
-
AuthorPosts
-
mywifemakesMember
Hey there! Thank you Dave and Susan for your kind assistance. I really appreciate it. π
I contacted the makers of Foodie Pro and this is what they reported back to me.
"Hi Levan,
Thanks for getting in touch! This is an issue we've seen with the WordPress 4.2 update. To resolve you can either update your theme to the latest version or add this code to your style.css file:
.screen-reader-text {
position: absolute !important;
left: -999em;
}Best,
Jodi"I tried this and it 100% works. π I know a LOT of people who have been experiencing this with the Foodie Theme so hopefully this thread will prove useful to anyone searching for a solution.
Thanks again for everyone's amazing help!
June 6, 2015 at 3:25 am in reply to: [Genesis Framework] How do I insert code right after the opening Body tag? #155084mywifemakesMemberYou're the best Erik! Big thanks to you π you've saved me a lot of headache!
June 6, 2015 at 3:02 am in reply to: [Genesis Framework] How do I insert code right after the opening Body tag? #155079mywifemakesMemberAh I see! Thanks so much for the clear description! Can I put this code at any point in the functions file of a Foodie Pro? Any particular position to ensure it is printed early on in the body tag?
You're so helpful, thank you!
June 6, 2015 at 2:29 am in reply to: [Genesis Framework] How do I insert code right after the opening Body tag? #155074mywifemakesMemberThanks so much for the reply! Appreciate it.
I'm still a little confused as to what to do. I'm using Foodie Pro along with Genesis, for reference. π
Here is the code I need to enter. I've changed the ID number for privacy reasons.
1. Load static js file
<script type="text/javascript" src="http://www35.sitename.com/gad/sitenameadapt_jsapi.act?afid=17345057XX"></script>2. Declare ad slots and load all ads at once.
<script type="text/javascript">
var window_w = document.width || document.body.clientWidth;
ββ/*check how wide a browser is */
β
ββif (window_w >= 728) {
βββSiteCreateSlot("17345057XX", "728x90", "Leaderboard");
}βββ
β SiteCreateSlot("17345057XX", "300x250", "Rectangle");
βββ
ββ
ββif (window_w <= 640) {
βββSiteCreateSlot("17345057XX", "320x50", "Mobile");
ββ}ββSiteGetAds("17345057XX");
</script>
So how would the code look like and where should I put it to make everything be positioned at the start of the body tag?
I'm so so so sorry if this is such an amateur question! Appreciate your professional assistance!
A step by step instruction would be awesome because I don't know anything about this. -
AuthorPosts