Tagged: Removing link in slider
- This topic has 3 replies, 3 voices, and was last updated 10 years, 2 months ago by Theme Horse Support Team.
-
AuthorPosts
-
August 25, 2014 at 7:03 pm #13263paperdavidParticipant
Hi there. I wish to remove the top part of the header where the logo and social media icons sit so that the navigation menu is at the very top of the page.
Is there a way of doing that?
Thanks,
David.August 26, 2014 at 6:05 am #13278Theme Horse Support TeamKeymasterHi Paperdavid,
To remove the top part of the header where the logo and social media icons sit Go to Appearance -> Theme Options -> Design Options Tab -> Custom CSS paste the following CSS code and Click on save all changes button:
.hgroup-wrap { display: none; }
Note: If you wish to display header logo and social media again then remove above CSS from the Custom CSS options.
Thank you!
August 27, 2014 at 10:24 pm #13335paperdavidParticipantHi. 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:25 am #13357Theme 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!
-
AuthorPosts
- You must be logged in to reply to this topic.