Site5

Menu

Support Forums

Clickable Standard Post Title

Home Forums Shortnotes Clickable Standard Post Title

Tagged: 

This topic contains 39 replies, has 18 voices, and was last updated by  liuchunkai 4 days, 2 hours ago.

Viewing 15 posts - 1 through 15 (of 40 total)
  • Author
  • #4923

    scx
    Member

    How to make Clickable Standard Post Title? here it is:

    Open standard.php and look for:

    <h2><?php the_title();?></h2>

    and then change to :

    <a href=”<?php the_permalink() ?>” title=”<?php the_title(); ?>”><?php the_title(‘<h2>’, ‘</h2>’); ?></a>

     

    Hope it helps

    SCX

    #5030

    ptashe
    Participant

    Thanks for the tip but I can’t seem to find standard.php?

    #5033

    scx
    Member

    standard.php in the theme : \lib\post-formats\standard.php

    #5034

    ptashe
    Participant

    Thanks, got it.

    #5035

    ptashe
    Participant

    That still didn’t work, I ended up getting some weird symbols for the title instead.  I did some research and got this code to work:  <code><a href=”<?php the_permalink() ?>” title=”<?php the_title(); ?>”><h2><?php the_title(); ?></h2></a></code>

     

    Note: without the <code> tags

    • This reply was modified 5 years ago by  ptashe.
    • This reply was modified 5 years ago by  ptashe.
    #5405

    gbacca
    Member

    Sorry, but neither of both codes on these posts works. They only put some rare symbols on screen instead of the title. And they does it just with my last post on frontapage, but they doesn’t any change on the title of the first post.

    Any other idea?

    Thank you.

     

    #5441

    bsahin
    Keymaster

    Hey Please open the lib/post-formats/standart.php and find line 5:

    <h2><?php the_title();?></h2>

    and change this line by:

    <a href="< ?php the_permalink() ?>" title="< ?php the_title(); ?>" rel="nofollow">< ?php the_title('<h2>', '</h2>'); ?></a>

    Actually you can find this answer given first message.

    1. Please make sure same file you edited

    2. And also make sure wp super cache plugin deactivate.

    3. Maybe you make mistake when copy and paste this code. Check them, what you copied.

    • This reply was modified 5 years ago by  bsahin.
    #5516

    monly
    Member

    how do i use the “read more ” in my article? Thank you。

    #5526

    bsahin
    Keymaster

    Hey @monly; you should only use <!–more–> tag or add this tag via visual editor. Thats All..

    #5530

    monly
    Member

    Ok,Thank you @bulent.sahin, I got it. And May I modify your theme? I want to add something  to complete the theme for using in my blog.

    #5534

    bsahin
    Keymaster

    Ok You’re welcome. You can modify the theme as you please.

    #5555

    gbacca
    Member

    Sorry, but the code you gave me doesn’t work. After replace the original line you have pointed me for that code the title is gone, and instead I got a line that shows part of the code as a link, and with some strange characters…

    This is the second time I test it, and the problem is the same.

    Are you sure that when you paste the code on this forum it is pasted correctly without loss characters?

    Thank you.

    #5556

    Bogdan Oasa
    Keymaster

    Hello gbacca,
    Yes, the code pasted here is correct.

    Try this too, instead of above, it might work for you:

    < ?php the_title(); ?>

    The code suggested above should have worked, this is why i ask if you can, please, give us the URL you’re working on?

    #5582

    gbacca
    Member

    Hi bvoasa,

    I’ve tried again with that code, but I’ve got en error again. Curiosly, the error happens only on the first and third post, but not in the second (the blog is new, and I only have 3 posts).

    As I can’t leave the code with the error in my blog, here you see an image with the error:

    http://my.jetscreenshot.com/demo/20130119-5u7a-57kb

    I’m using the standard theme without any modification, and the same por WordPress.

    Thank you.

    #5583

    gbacca
    Member

    BTW: the blog is here –> www . germanbacca . com

Viewing 15 posts - 1 through 15 (of 40 total)

You must be logged in to reply to this topic.