New Landing How can we help? Themeforest Theme Support Dante SEO // Add canonical url automatically

Viewing 7 posts - 1 through 7 (of 7 total)
  • Posted in: Dante
  • #88911
    Siem43
    Member
    Post count: 40

    Hi,

    I have a problem using Dante theme. I’m working with yoast SEO Plugin which automatically includes <link rel="canonical" href="$myurl"> tag do avoid dublicate content.

    But using Dante, it is not working but we need calonical tag in <head> area. How can I implement a dynamic created canonical tag manually?

    thx
    siem

    #88928
    Siem43
    Member
    Post count: 40

    Hi, another problem:

    http://www.eventinc.de/info/silvester (pw: 123) – i styled my own page but the “back to top” button in the lower right corner isn’t working any more. Is there a script or anything I had to load that the back to top button is working?

    thx

    #89455
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You are using very old version 2.16 of theme. You should upgrade to latest version 2.61 of theme.
    Thanks

    #89525
    Siem43
    Member
    Post count: 40

    Hey, thx for the answer. This is not possible because of the necessary template changes for seo & style I did.

    #89545
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Go to the theme folder in wordpress(wp-content/themes/<theme_name>) and open the file header.php in your favorite editor. Now find the line

    </head>

    and add the following code before that line

    <?php if ( is_singular() ) { ?>
    <link rel="canonical" href="<?php the_permalink(); ?>" /> 
    <?php } ?>
    

    Now, it should look something like this…

    <?php if ( is_singular() ) { ?>
    <link rel="canonical" href="<?php the_permalink(); ?>" /> 
    <?php } ?>
    </head>

    You are done. Save the file and upload it to your server. Hope that should work.
    Thanks

    #126719
    Ilya
    Member
    Post count: 122
    This reply has been marked as private.
    #126749
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use Yoast WP SEO plugin.
    Thanks
    Mohammad

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register