-
AuthorPosts
-
May 2, 2014 at 12:03 pm #259325
Hi Friends , I hope everything is fine there, thanks for your precious time and support.
Thanks for such a non-problematic wonderful theme. :)
.
.
Let’s assume that I entered the
“Computer Hardware and Software”
as my website’s TITLE in Dashboard > General > Settings…When I finish an article (I mean, finish the process of reviewing/introducing a portfolio item) , it basically goes like this: When I add a new portfolio item named “Asus MainBoard“, the NAME of the Portfolio item goes like this on the browser tab AS A TITLE, while still preserving the one I entered for the whole website.:
“Computer Hardware and Software | Asus Mainboard“
MY QUESTION IS, Is it possible to reverse this order for all the each one of the Pages, BlogPosts and Portfolio Items.
Instead of the one below,
“Computer Hardware and Software | Asus Mainboard“They should read
“Asus Mainboard | Computer Hardware and Software“
“Portfolio / Page or BlogPost’s Name | WebSite’s Main Title
.
.
.
And one more question: By default, what Google sees as the meta description of each post? First few words of each post / portfolio item / page?
.
Please let me know friends, and please forgive me for being a headache :)))))
Thanks very much for your support.
Kind Regards,
Bedros- This topic was modified 10 years, 6 months ago by Bedros.
May 3, 2014 at 3:10 am #259596Hi Bedros!
You can easily alter the title structure with a plugin like this:
http://wordpress.org/plugins/fv-all-in-one-seo-pack/Cheers!
JosueMay 3, 2014 at 11:32 am #259662Hi Josue, and thanks a lot for your understanding and patience.
You mean, it’s not something we can achieve without a plugin?
Thanks very much.
Kind Regards, Josue. :)May 3, 2014 at 10:28 pm #259801Hey!
Not with Enfold as far as i know, you need a plugin (it’s better).
Cheers!
JosueMay 18, 2014 at 10:59 am #266260Hi Friends, it seems in a previous post, there is a solution to reverse the order of the “Main SEO Title” and “Post/Product SEO Title”. Is it still valid, because I can’t find the related code in Header.PHP.
And sorry for asking again: By default (without a plugin), what Google sees as the meta description of each post / or portfolio item? A section from the top of each posts’ content? I mean, First few words of each post / portfolio item / page?
Please let me know.
Thanks very much friends, for all your efforts. I really appreciate it.
Wish you the very best,
Bedros- This reply was modified 10 years, 6 months ago by Bedros.
May 18, 2014 at 4:15 pm #266321Hey!
Look in includes/helper-main-menu.php, it’s valid but i’d still recommend using a plugin because it will survive theme updates.
Regarding the other topic which is quite theme agnostic, refer to this article:
http://moz.com/learn/seo/meta-descriptionCheers,
Josue- This reply was modified 10 years, 6 months ago by Josue.
May 18, 2014 at 5:03 pm #266327Hi Josue,
Sorry but you mean, /public_html/wp-includes/theme-compat/header.php? (even this file don’t have the code that I mentioned in my previous comment)enfold / includes doesn’t have a header.php file
and
enfold/header.php also doesn’t have that code.
Please let me know, Thanks for all :)
- This reply was modified 10 years, 6 months ago by Bedros.
May 18, 2014 at 5:51 pm #266340Check in enfold/includes/helper-main-menu.php.
Regards,
JosueMay 18, 2014 at 5:55 pm #266343Sorry Josue, it doesn’t exist there too.
May 18, 2014 at 6:10 pm #266351You are right, the workaround provided can’t be applied in the latest version of Enfold, now you’d need to edit:
/framework/php/function-set-avia-frontend.php, line 396-411:if(!function_exists('avia_set_title_tag')) { /** * generates the html page title * @return string the html page title */ function avia_set_title_tag() { $title = get_bloginfo('name').' | '; $title .= (is_front_page()) ? get_bloginfo('description') : wp_title('', false); $title = apply_filters('avf_title_tag', $title, wp_title('', false)); return $title; } }
What structure would you like to have?
Best regards,
JosueMay 18, 2014 at 6:16 pm #266354Thanks Josue,
Simply to reverse the blog’s main title with potfolioItem’s Title (or post’s or page’s)blogMain Title | portfolio Item Title (or post’s title , or page’s title)
to
portfolio Item Title (or post’s title , or page’s title) | blogMain Title
- This reply was modified 10 years, 6 months ago by Bedros.
May 18, 2014 at 6:19 pm #266357In the file mentioned, change:
if(!function_exists('avia_set_title_tag')) { /** * generates the html page title * @return string the html page title */ function avia_set_title_tag() { $title = get_bloginfo('name').' | '; $title .= (is_front_page()) ? get_bloginfo('description') : wp_title('', false); $title = apply_filters('avf_title_tag', $title, wp_title('', false)); return $title; } }
To:
if(!function_exists('avia_set_title_tag')) { /** * generates the html page title * @return string the html page title */ function avia_set_title_tag() { $title = (is_front_page()) ? get_bloginfo('description') : wp_title('', false); $title .= get_bloginfo('name').' | '; $title = apply_filters('avf_title_tag', $title, wp_title('', false)); return $title; } }
Best regards,
JosueMay 18, 2014 at 6:33 pm #266366Hmmm, interesting, it broke the site :))
May 18, 2014 at 6:37 pm #266368Hey!
That should not be happening, i tested on my install and it worked fine, make sure it’s exactly like this:
if(!function_exists('avia_set_title_tag')) { /** * generates the html page title * @return string the html page title */ function avia_set_title_tag() { $title = (is_front_page()) ? get_bloginfo('description') : wp_title('', false); $title .= ' | '.get_bloginfo('name'); $title = apply_filters('avf_title_tag', $title, wp_title('', false)); return $title; } }
I tweaked the position of the pipe separator.
Do you have access to your PHP log?
Cheers!
JosueMay 18, 2014 at 7:15 pm #266392This is really interesting. :)
enfold/framework/php/function-set-avia-frontend.phpI am exactly copying and pasting the code but it doesn’t seem to work.
How could the default one work but not the other one? :)Sorry for being an headache.
- This reply was modified 10 years, 6 months ago by Bedros.
May 18, 2014 at 7:30 pm #266399Can you provide me a temporary FTP account? post it as a private reply.
Best regards,
JosueMay 18, 2014 at 7:41 pm #266401Hi!
Please insert this code into your child theme functions.php or enfold/functions.php file:
add_filter('avf_title_tag', 'avia_change_title_tag', 10, 2); function avia_change_title_tag($title, $wptitle) { if(!is_front_page() && !is_home()) $title = get_bloginfo('name').' | '.$wptitle; return $title; }
Best regards,
PeterMay 18, 2014 at 7:57 pm #266408This reply has been marked as private.May 18, 2014 at 8:26 pm #266419See it now:
http://www.wpthemescafe.com/wordpress-themes-plugins/just-landed-marketing-wordpress-theme/Added Peter’s solution to your child functions.php.
Best regards,
JosueMay 18, 2014 at 8:36 pm #266422ONLY functions.php has changed then?
Thanks very much for all your efforts,
I really appreciate it.
Sorry for all the mess.
Wish you the best, Friends.- This reply was modified 10 years, 6 months ago by Bedros.
May 18, 2014 at 8:37 pm #266423Yes, this file:
/public_html/wp-content/themes/enfold-child/functions.phpBest regards,
JosueMay 18, 2014 at 8:38 pm #266426Thanks very much :)
Wish you the best, friends.May 18, 2014 at 8:40 pm #266427You are welcome, glad we could help :)
Regards,
Josue -
AuthorPosts
- The topic ‘Title (The which show-up on browsers tabs) and Descriptions’ is closed to new replies.