Viewing 23 posts - 1 through 23 (of 23 total)
  • Author
    Posts
  • #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.
    #259596

    Hi Bedros!

    You can easily alter the title structure with a plugin like this:
    http://wordpress.org/plugins/fv-all-in-one-seo-pack/

    Cheers!
    Josue

    #259662

    Hi 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. :)

    #259801

    Hey!

    Not with Enfold as far as i know, you need a plugin (it’s better).

    Cheers!
    Josue

    #266260

    Hi 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.

    https://kriesi.at/support/topic/seo-and-browser-title-how-to-make-post-or-product-title-before-blog-title/

    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.
    #266321

    Hey!

    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-description

    Cheers,
    Josue

    • This reply was modified 10 years, 6 months ago by Josue.
    #266327

    Hi 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.
    #266340

    Check in enfold/includes/helper-main-menu.php.

    Regards,
    Josue

    #266343

    Sorry Josue, it doesn’t exist there too.

    #266351

    You 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,
    Josue

    #266354

    Thanks 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.
    #266357

    In 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,
    Josue

    #266366

    Hmmm, interesting, it broke the site :))

    #266368

    Hey!

    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!
    Josue

    #266392

    This is really interesting. :)
    enfold/framework/php/function-set-avia-frontend.php

    I 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.
    #266399

    Can you provide me a temporary FTP account? post it as a private reply.

    Best regards,
    Josue

    #266401

    Hi!

    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,
    Peter

    #266408
    This reply has been marked as private.
    #266419

    See 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,
    Josue

    #266422

    ONLY 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.
    #266423

    Yes, this file:
    /public_html/wp-content/themes/enfold-child/functions.php

    Best regards,
    Josue

    #266426

    Thanks very much :)
    Wish you the best, friends.

    #266427

    You are welcome, glad we could help :)

    Regards,
    Josue

Viewing 23 posts - 1 through 23 (of 23 total)
  • The topic ‘Title (The which show-up on browsers tabs) and Descriptions’ is closed to new replies.