Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author WebberZone

    (@webberzone)

    crp_inner?

    Thread Starter anyway

    (@sfdsfwer)

    Sorry for being not clear enough.

    <a href="">
      <div class="crp_inner">
      </div>
    </a>

    The entire excerpt clickable.

    Plugin Author WebberZone

    (@webberzone)

    It’s still not clear to me. I don’t have this code within the plugin itself.

    How are you creating this?

    Thread Starter anyway

    (@sfdsfwer)

    Oh sorry, I wrote that myself into the “HTML to display before each list item:” area. Thats really embarrassing :-/

    Nevertheless… what I need ist an anchor that surrounds the whole single excerpt item so that the title, the thumbnail and the except text is clickable as one item. Here is my html so far:

    <div class="crp_inner">
        <a href="permalink" class="crp_title">Headline</a>
        <a href="permalink">
            <img src="" alt="" title="" class="crp_thumb crp_featured" height="175" width="260">
        </a>
        <span class="crp_excerpt">
            <a href="parmalink">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</a>
        </span>
    </div>

    In that example every element of the excerpt has it’s own anchor. I hope it is clearer now what I’m trying to achieve, sorry again and thank you for your time!

    Plugin Author WebberZone

    (@webberzone)

    Much clearer. There isn’t an easy way to relink or recreate the entire output.

    However, a good option might be to use a custom code using the API.

    https://gist.github.com/ajaydsouza/c8defd4b46e53240e376#file-tptn-api-examples-php

    Thread Starter anyway

    (@sfdsfwer)

    Okay, thats a bit too high for me at the moment, but I’ll dive more into it next days. Maybe I can figure out, how that works. Thank you for your help!

    Plugin Author WebberZone

    (@webberzone)

    No problem. Most of it is straight forward.

    The main part you’d want to change is the following to generate the output that you’re looking for

    echo '<a href="' . get_permalink( get_the_ID() ) . '">';
    			the_title();
    			echo '</a>';
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Wrapping the entire crp_inner into permalink’ is closed to new replies.