Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi rizzler,
    there is a link tag wrapped around the whole thing, which comes from your site. I can’t tell if it comes from your site template or is added via editor. If it is added via editor, you should be able to remove it when you go to text view in editor.

    Also you could vertically center the “GIF” text in the circle by adding following line to your style.css file

    @media (max-width: 767px) {
       .gif_wrap .play_gif {
          line-height: 2.5em !important;
       }
    }
    
    @media (min-width: 768px) {
       .gif_wrap .play_gif {
          line-height: 3.5em !important;
       }
    }
    Thread Starter rizzler

    (@rizzler)

    Hi again!

    I found the problem, it’s the theme.

    <?php
    if(has_post_thumbnail()) {
    ?><?php if (!is_single()) { ?>” title=”<?php printf( $SMTheme->_( ‘permalink’ ), the_title_attribute( ‘echo=0’ ) ); ?>”>

    <?php }

    If i remove <?php the_permalink(); ?> the gif links back to the main url and reloads the page when i click the GIF. this only happens for the GIF as i set Link URL to all my other images. Any suggestions how i can modify the above line to make it work for the gif or what to do?

    You changed how the function is writing the url for the link tag, but didn’t remove the link.
    You would be better of completely removing the link from containers where the gif-previews are shown.
    I suggest asking the template creators for support. They will have a far better overview of how their code is built.

    regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘on click permalink’ is closed to new replies.