Tagged: x
-
AuthorPosts
-
September 7, 2016 at 5:04 am #1164226
Clement LParticipantHi,
I would like to know if it is possible to just remove the wording “permalink to:” and only have the title of the post in the permalink when hovering the mouse over the image..
http://www.clementlauchardphotography.com/home/blog/
Thank you very much!
Clement.September 7, 2016 at 8:09 am #1164399
ChristianModeratorHey Clement,
Please add the code below in your functions.php
/* * Remove Permalink to text to * featured image link in the blog page */ function x_featured_image( $cropped = '' ) { $stack = x_get_stack(); $fullwidth = ( in_array( 'x-full-width-active', get_body_class() ) ) ? true : false; if ( has_post_thumbnail() ) { if ( $cropped == 'cropped' ) { if ( $fullwidth ) { $thumb = get_the_post_thumbnail( NULL, 'entry-cropped-fullwidth', NULL ); } else { $thumb = get_the_post_thumbnail( NULL, 'entry-cropped', NULL ); } } else { if ( $fullwidth ) { $thumb = get_the_post_thumbnail( NULL, 'entry-fullwidth', NULL ); } else { $thumb = get_the_post_thumbnail( NULL, 'entry', NULL ); } } switch ( is_singular() ) { case true: printf( '<div class="entry-thumb">%s</div>', $thumb ); break; case false: printf( '<a href="%1$s" class="entry-thumb" title="%2$s">%3$s</a>', esc_url( get_permalink() ), esc_attr( sprintf( __( '"%s"', '__x__' ), the_title_attribute( 'echo=0' ) ) ), $thumb ); break; } } }That targets the featured image links only though. There are more places you should remove the text. Here’s a list
x\framework\views\ethos\content-image.php: x\framework\views\ethos\content-link.php: x\framework\views\ethos\content-page.php: x\framework\views\ethos\content-quote.php: x\framework\views\ethos\content.php: x\framework\views\icon\content-image.php: x\framework\views\icon\content-link.php: x\framework\views\icon\content-page.php: x\framework\views\icon\content-quote.php: x\framework\views\icon\content.php: x\framework\views\integrity\content-image.php: x\framework\views\integrity\content-link.php: x\framework\views\integrity\content-page.php: x\framework\views\integrity\content-quote.php: x\framework\views\integrity\content.php: x\framework\views\renew\content-image.php: x\framework\views\renew\content-link.php: x\framework\views\renew\content-page.php: x\framework\views\renew\content-quote.php: x\framework\views\renew\content.php: x\framework\functions\global\featured.php: x\framework\views\ethos\_content-post-header.php: x\framework\views\icon\_content-post-header.php: x\framework\views\icon\content-link.php: x\framework\views\icon\content-page.php: x\framework\views\integrity\_content-post-header.php: x\framework\views\integrity\content-image.php: x\framework\views\integrity\content-link.php: x\framework\views\integrity\content-page.php: x\framework\views\integrity\content-portfolio.php: x\framework\views\integrity\content-quote.php: x\framework\views\renew\_content-post-header.php: x\framework\views\renew\content-link.php: x\framework\views\renew\content-page.php: x\framework\views\renew\content-portfolio.php: x\framework\views\renew\content-quote.php:You might want to contact our trusted partners who caters X setup and customization needs. Please see https://community.theme.co/custom-development/
Thanks.
September 7, 2016 at 8:35 am #1164446
Clement LParticipantThat’s amazing Thank you!!
I am not sure what is the second code you are giving me is for but the first one does exactly what I want..
I have tried contacting the link you sent me for a different request but I received what seems to be an automated email asking me to get help on the forum.. Could you help me with that?
Or maybe I can ask you here..
I would like to have the title of the post appearing when hovering on the image a little bit like this:
But instead of having the title appearing from left to right I would like it to just appear the same way it goes transparent at the moment on my website..
I am using Integrity so I think it is different.
Please please I would love you to help me with that!
You guys are fantastic!!
Many thanks,
Clement.September 7, 2016 at 10:37 am #1164648
ChristianModeratorThe second code is a list of template files where the rest of “Permalink to:” string are located.
Regretfully, Renew and Integrity are structured and designed different so customization would be quite involved.
Regarding the email, I’ll forward your concern to our forum manager.
Thanks.
September 7, 2016 at 11:10 am #1164697
Clement LParticipantThank you very much!
I just got an answer from them Thanks;)
Shame you can’t help me for my last request but don’t worry you guys are still amazing..
September 7, 2016 at 1:36 pm #1164940
JoaoModeratorThanks for understanding and for the kind words.
Please contact us if you need help with anything else.
Joao
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1164226 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
