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 3723-01: Wrong META title when Front Page is a static page (http://forum.bytesforall.com/showthread.php?t=23096)

juggledad Mar 4, 2015 04:20 AM

PATCH 3723-01: Wrong META title when Front Page is a static page
 
NOTE: This thread Was known as 'PATCH 3722-04: Wrong META title when Front Page is a static page' but since it didn't make it to that release, I've changed the title.


If you use the built in Atahualpa SEO and set Dashboard->Settings->Reading->Front Page displays: to a static page, the meta title created will only show the blog title, not what you specify at ATO->Configure SEO->Meta Title Tag format. This fix corrects this issue

edit bfa_meta_tags.php and change lines 75-82 from
HTML Code:

                #if ( is_home() ) {
                if ( is_front_page() ) {

                        return get_bloginfo('name');

                } else {

                        if ( is_single() OR is_page() ) {

to
HTML Code:

                if ( is_home() ) {
                        return get_bloginfo('name');
                } else {
                        if ( is_single() OR is_page() OR is_front_page() ) {



All times are GMT -6. The time now is 10:02 PM.

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