• Resolved tuhinbiswas98

    (@tuhinbiswas98)


    open post in new tab
    ther any way to do that? with css? if someone click on my post it will open in new tab

    my site is tutshome.com

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi tuhinbiswas98.

    1. Copy file content.php from the parent theme to a child theme.
    2. At the top of the file locate this line:

    <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">

    3. Add the target=”_blank” attribute:

    <a href="<?php the_permalink(); ?>" target="_blank" title="<?php the_title(); ?>">

    This article presents some interesting pros and cons of using the target=”_blank” attribute.

    Thread Starter tuhinbiswas98

    (@tuhinbiswas98)

    ty ty its worrking ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘open post in new tab’ is closed to new replies.