Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Old Version fixes and change logs (http://forum.bytesforall.com/forumdisplay.php?f=37)
-   -   PATCH 3718-01: <body> statement shows category named when blog page is front page (http://forum.bytesforall.com/showthread.php?t=22786)

juggledad Sep 2, 2014 04:01 AM

PATCH 3718-01: <body> statement shows category named when blog page is front page
 
1 Attachment(s)
A new feature was added in 3.7.17 to add the categories names to the body on single post pages. It does this by testing to see if the page is an archive pages (any multi post page). If so, it does not add the category names to the <body> statement.

Turns out that if you show your posts on the landing page, it is not considered an archive page like all other multi post pages (sigh)

To fix this issue you can edit function.php and change line 925 (version 3.7.18) from
HTML Code:

            if (!is_archive()) {       
to
HTML Code:

            if (is_single()) {       
or replace functions.php with the attached version. This will be fixed in the next release.


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

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