• Anonymous User 12851872

    (@anonymized-12851872)


    With WP4.1, the tag
    <title><?php wp_title(''); ?></title>
    should no longer be used, it is necessary to remove it.
    Put in functions.php

    function wpc_theme_support() {
       add_theme_support( 'title-tag' );
    }
    add_action( 'after_setup_theme', 'wpc_theme_support' );

    Then put it in headrr.php

    if ( ! function_exists( '_wp_render_title_tag' ) ) :
    function theme_slug_render_title() {
        echo '<title>' . wp_title( '|', false, 'right' ) . "</title>\n";
    }
    add_action( 'wp_head', 'theme_slug_render_title' );
    endif;

    The theme going this update?
    Thank you

Viewing 8 replies - 1 through 8 (of 8 total)
  • Can you please cite your reference that says “it is necessary to remove it”?

    1. Yes, I’ve seen that and it says it’s the “recommended way” going forward. The OP stated “it is necessary to remove it”, which it is not. There are many users who might come to this forum and read that, thinking that they need to somehow modify their code to include those functions. My point was that, if you’re going to post something as “fact”, you should be able to provide a reference supporting your statement.
    2. It’s not really a question of general interest to the majority of users on this forum. If the OP had a question for the author (which is implied since he’s the only one that could answer it) then it should have been noted as such in the post. Personally, I think it should have been addressed by leaving a comment or filling out the contact form on the author’s web site rather than a post on the forum which the author may, or may not, see.
    3. This is not meant to be a criticism of the OP or his/her willingness to participate in the forum. The more users that provide help here the more we can all learn about using and customizing the Hueman theme.

    Hi bdbrown,
    I ask about this changes on other WordPress forum. For now, I also don’t think is “must do” or “necessary”, but in near future probably will.

    Alex don’t update hueman theme in long time (but maybe will do for christmas), so probably we must do it ourselves.

    If you know something in this topic, please share with us ??

    I don’t know anything more that what’s publicly available in the article you linked above.

    Thread Starter Anonymous User 12851872

    (@anonymized-12851872)

    Hi,

    Happy new year and good health to all.

    Sorry I was absent several days, I speak English ps, I use a translator, my sentence was mistranslated, I didn’t say required in the mandatory sense, but we wanted to adopt the new tag, it should do so.
    I just wanted to know if the author thought to adopt the new tag, thats all, I take the opportunity to explain how.

    I posted a message here but also on the website of the author of Hueman but it is complicated to find his commentary on the author’s website, is not the last comments, need to click and click on “Recent comments” curtail find his message.
    I dare not write contact, as I do master’s degrees not English.

    It’s in the newest version:

    Theme : Hueman
    Version : 2.2.0
    Author : Alexander “Alx” Agnarson – https://alxmedia.se

    December 31 2014 – 2.2.0
    ===========================================================
    – Added WP 4.1 title tag support
    – Added standard blog list option
    – Added header and footer widget ads areas
    – Moved disable sidebar top option to sidebars section
    – Updated to OptionTree 2.4.6

    Thread Starter Anonymous User 12851872

    (@anonymized-12851872)

    Thank You

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Title tag WP 4.1’ is closed to new replies.