• Resolved falk45

    (@falk45)


    hi, I am using the Qualeb theme on my blog https://www.brenkster.com

    Apparently the post titles on the blog page are not clickable. I would like to insert the permalink. What do i have to do? I read somewhere else that i have to put the_permalink in my index.php right bevor the_title. But in my index.php I have no such things. Would you please look into my code?

    Thank you very much. ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter falk45

    (@falk45)

    i found something out! i edited the content-blogreg.php and wrote this:

    <strong><a href="<?php the_permalink(); ?>"></strong><div class="blog-article-right">
    						<h2 class="blog-article-title-reg"> %3$s <strong></a></strong></h2>

    My posts titles are now clickable, BUT the link is broken. It looks like this: https://www.domain.com/the_permalink();?>

    what happened?

    Well first off your syntax is a little messy.

    <a href="<?php the_permalink(); ?>">
    <div class="blog-article-right">
    <h2 class="blog-article-title-reg"> %3$s </h2>
    </div>
    </a>

    You were missing a closing div tag, putting strong tags in the wrong places and closing tags in the wrong order. In the example above I completely removed the use of tags, I would do this with CSS in the above scenario.

    you only posted a fraction of the involved code;

    it seems that the code is part of a string output;

    I guess you could try:

    <div class="blog-article-right">
    					<a href=' . get_permalink() . '"><h2 class="blog-article-title-reg"> %3$s </a></h2>

    if in doubt, post the full code of the template.

    Thread Starter falk45

    (@falk45)

    @robert
    the strong tags came from the post formatting here.

    @alchymyth
    you did it! your code works fine. that is exactly what i wanted. thank you so much! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘post title clickable’ is closed to new replies.