Slider link settings

Home Page Support Premium Themes EightLaw Pro Slider link settings

This topic contains 3 replies, has 2 voices, and was last updated by 8Degree Themes 8Degree Themes 1 month, 1 week ago.

  • Author
    Posts
  • #4454

    ashley
    Participant

    Is there any way to have the slider link to pages instead of posts?

  • #4456
    8Degree Themes
    8Degree Themes
    Keymaster

    Hi there,

    Thank you for writing in.
    Please find theme file:8law-pro\wp-content\themes\eightlaw-pro\inc\eightlaw-pro-function.php on line number 67 to 71.
    then please replace the following code:

    <div class="slider-content">
           	                           <?php echo eightlaw_pro_excerpt( get_the_content(), $excerpt ); 
           	                           ?>
                                   	</div>
           	<a class= 'home-viewmore slider-viewmore' href="<?php the_permalink(); ?>" > <?php echo esc_attr(get_theme_mod('eightlaw_pro_homepage_settings_slider_button_text',__('Details','eightlaw-pro'))); ?> </a>

    By this code:

    <div class="slider-content">
    			        	                            <?php the_excerpt(); 
    			        	                            ?>
    			                                	</div>
    			                                	<?php 
    			                                	$slider_readmore = esc_attr(get_theme_mod('eightlaw_pro_homepage_settings_slider_button_text',__('Details','eightlaw-pro')));
    			                                	if(!empty($slider_readmore)):?>
    			        							<a class= 'home-viewmore slider-viewmore' href="<?php the_permalink(); ?>" > <?php echo $slider_readmore; ?> </a>
    			        							<?php endif;?>

    And Go to admin dashboard-> Slider Post
    then paste this code in excerpt field with content:

    <a class="home-viewmore slider-viewmore" href="#" target="_self"> Details </a>

    for example:

    Biggest and strongest Law Firm
    
    <a class="home-viewmore slider-viewmore" href="#" target="_self"> Details </a>

    In Above example
    <strong>Biggest and strongest Law Firm</strong> is the content and <a class="home-viewmore slider-viewmore" href="#" target="_self"> Details </a> is readmore / Detail button.

    Incase you don’t find exerpt text field or you don’t know how to enable excerpt field then follow the following steps:
    -Go to admin dashboard-> Slider posts-> find screen option (above the edit post).

    If you need any other help then please feel free to ask us.

    Thank you!!

  • #4585

    ashley
    Participant

    I did this and I got the wordpress white screen of death.

  • #4588
    8Degree Themes
    8Degree Themes
    Keymaster

    Hi there,

    Sorry for the delayed response.
    Can you please send your site login details here: support@8degreethemes.com?

    We will solve your issue and instruct you to add code.

    Thank you!!

You must be logged in to reply to this topic.

Please post your questions in the respective forum above.

All questions related to our Pro theme will be answered in less than 24 hours. All questions related to our Free theme will be answered in less than 48 hours.
Our Facebook page is the best place to get updated with themes, documentation, question/answers. Please like us here:

8 Reasons to choose

Instant Updates

Many free themes, only buy themes when you are ready!

Subscribe for newsletter

Email *
-