Tagged: slider
- This topic has 4 replies, 3 voices, and was last updated 10 years, 1 month ago by Theme Horse Support Team.
-
AuthorPosts
-
August 28, 2014 at 3:29 am #13339paperdavidParticipant
I accidentally posted this in an unrelated thread before, so here it is again…
Hi. How do I remove the link in the slider? I am using my site as a landing page so I don’t want to link out to any other pages.
Thanks,
D.August 28, 2014 at 8:26 am #13358Theme Horse Support TeamKeymasterHi Paperdavid,
You need code customisation for it. You just simply go to the theme folder -> library -> structure -> header -extension.php
Can you see this code
if( has_post_thumbnail() ) {
$attitude_featured_post_slider .= ‘<figure>‘;
$attitude_featured_post_slider .= get_the_post_thumbnail( $post->ID, $slider_size, array( ‘title’ => esc_attr( $title_attribute ), ‘alt’ => esc_attr( $title_attribute ), ‘class’ => ‘pngfix’ ) ).’</figure>’;
}
if( $title_attribute != ” || $excerpt !=” ) {
$attitude_featured_post_slider .= ‘
<article class=”featured-text”>’;
if( $title_attribute !=” ) {
$attitude_featured_post_slider .= ‘<div class=”featured-title”>‘. get_the_title() . ‘</div><!– .featured-title –>’;
}
if( $excerpt !=” ) {
$attitude_featured_post_slider .= ‘<div class=”featured-content”>’.$excerpt.'</div><!– .featured-content –>’;
}
$attitude_featured_post_slider .= ‘
</article><!– .featured-text –>’;
}
remove this code and add this codeif( has_post_thumbnail() ) {
$attitude_featured_post_slider .= ‘<figure>‘;
$attitude_featured_post_slider .= get_the_post_thumbnail( $post->ID, $slider_size, array( ‘title’ => esc_attr( $title_attribute ), ‘alt’ => esc_attr( $title_attribute ), ‘class’ => ‘pngfix’ ) ).’</figure>’;
}
if( $title_attribute != ” || $excerpt !=” ) {
$attitude_featured_post_slider .= ‘
<article class=”featured-text”>’;
if( $title_attribute !=” ) {
$attitude_featured_post_slider .= ‘<div class=”featured-title”>‘. get_the_title() . ‘</div><!– .featured-title –>’;
}
if( $excerpt !=” ) {
$attitude_featured_post_slider .= ‘<div class=”featured-content”>’.$excerpt.'</div><!– .featured-content –>’;
}
$attitude_featured_post_slider .= ‘
</article><!– .featured-text –>’;
}
From here you slider and all content is displayed but We recommended not to change the code because if you change the code then while updating to our new version all your customisation code will be lost. So better make child theme and first unhook the functions and the edit the code.http://codex.wordpress.org/Child_Themes
Thank you!
August 28, 2014 at 8:26 am #13359Theme Horse Support TeamKeymasterHi Paperdavid,
You need code customisation for it. You just simply go to the theme folder -> library -> structure -> header -extension.php
Can you see this code
if( has_post_thumbnail() ) { $attitude_featured_post_slider .= '<figure><a href="' . get_permalink() . '" title="'.the_title('','',false).'">'; $attitude_featured_post_slider .= get_the_post_thumbnail( $post->ID, $slider_size, array( 'title' => esc_attr( $title_attribute ), 'alt' => esc_attr( $title_attribute ), 'class' => 'pngfix' ) ).'</a></figure>'; } if( $title_attribute != '' || $excerpt !='' ) { $attitude_featured_post_slider .= ' <article class="featured-text">'; if( $title_attribute !='' ) { $attitude_featured_post_slider .= '<div class="featured-title"><a href="' . get_permalink() . '" title="'.the_title('','',false).'">'. get_the_title() . '</a></div><!-- .featured-title -->'; } if( $excerpt !='' ) { $attitude_featured_post_slider .= '<div class="featured-content">'.$excerpt.'</div><!-- .featured-content -->'; } $attitude_featured_post_slider .= ' </article><!-- .featured-text -->'; }
remove this code and add this code
if( has_post_thumbnail() ) { $attitude_featured_post_slider .= '<figure><a href="#" title="'.the_title('','',false).'">'; $attitude_featured_post_slider .= get_the_post_thumbnail( $post->ID, $slider_size, array( 'title' => esc_attr( $title_attribute ), 'alt' => esc_attr( $title_attribute ), 'class' => 'pngfix' ) ).'</a></figure>'; } if( $title_attribute != '' || $excerpt !='' ) { $attitude_featured_post_slider .= ' <article class="featured-text">'; if( $title_attribute !='' ) { $attitude_featured_post_slider .= '<div class="featured-title"><a href="#" title="'.the_title('','',false).'">'. get_the_title() . '</a></div><!-- .featured-title -->'; } if( $excerpt !='' ) { $attitude_featured_post_slider .= '<div class="featured-content">'.$excerpt.'</div><!-- .featured-content -->'; } $attitude_featured_post_slider .= ' </article><!-- .featured-text -->'; }
From here you slider and all content is displayed but We recommended not to change the code because if you change the code then while updating to our new version all your customisation code will be lost. So better make child theme and first unhook the functions and the edit the code.
http://codex.wordpress.org/Child_Themes
Thank you!
October 23, 2014 at 7:15 pm #17863djelalParticipantHi – I just tried this and nothing seems to change.
The link is still on the slider.
I need to just display marketing messages with no links on the images, title or text.Thanks.
October 24, 2014 at 3:03 pm #17879Theme Horse Support TeamKeymasterHi djelal,
It may be in cache. You first clear the cache. That must work or you have done something wrong. Ig you are not good at coding then don’t try to change any code but better find a developer to fix it.Thank you!
-
AuthorPosts
- You must be logged in to reply to this topic.