badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Removing Link in Slider

Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #13339
    paperdavid
    Participant

    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.

    #13358

    Hi 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 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 –>’;
    }
    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!

    #13359

    Hi 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!

    #17863
    djelal
    Participant

    Hi – 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.

    #17879

    Hi 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!

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.