Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Post-Kicker, -Byline & -Footer (http://forum.bytesforall.com/forumdisplay.php?f=17)
-   -   Javascript added to Post/Page Info Items Footer for Multi Pages not inserted (http://forum.bytesforall.com/showthread.php?t=15617)

uppercut Oct 10, 2011 07:45 PM

Javascript added to Post/Page Info Items Footer for Multi Pages not inserted
I have added my google adsense code to ATO-> post page info items -> Footer single post pages, footer multi post pages, footer page pages.

It works on all but multi post pages. It's like it's not even getting inserted (when I view source).

check on http://uppercutwoodworks.com/

uppercut Oct 10, 2011 08:09 PM

Looks like this is because I have a home page and a blog page, and bfa_post_parts has a bug.

juggledad Oct 11, 2011 05:16 AM

What version of Atahualpa and WP?

when you say you have a home page do you mean you have a home.php file or at dashboard->settings->reading-Front page displays, you set it to a static page?

Aslo it looks fine to me and I notice that you have W3Cache on. With a caching plugin active, changes to the theme may take some time to show up unless you flush the cache. I always recommend turning off caching plugins while developing or making changes so you see the changes right away...

uppercut Oct 11, 2011 11:12 AM

Latest versions of Atahualpa and WP. My WP dashboard says both are up to date.

dashboard->settings->reading-Front page displays is set to a static page (there is uppercutwoodworks.com, and uppercutwoodworks.com/blog) one is the static home, the other is the blog home, which shows three posts by default.

It looks fine now because I followed the instructions in another post that describe the bug. Due to the static home page, the logic in bfa_post_parts only works if you *don't* have a static home page. I put my code in the home page footer (which is now being applied to the multipost blog page) and it works now.


lmilesw Oct 11, 2011 11:17 AM

Where did you find the info about the bug in bfa_post_parts?

uppercut Oct 11, 2011 11:24 AM

The first thing I did was look at the code. The logic detects is_home(), and home in this case means "blog home" - bfa_post_parts doesn't have any logic to handle websites with a static home and the blog hosted on a separate page. So it sees the blog page as home, but sees that the footer_home is empty, and does nothing.

juggledad Oct 11, 2011 11:43 AM

Did you try flushing the cache or disabling the w3 cache plugin before doing anything else?
When I looked at your site before the post copters on multi post pages were working

All times are GMT -6. The time now is 06:38 AM.

Powered by vBulletin® Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.