• Resolved tomwp8

    (@tomwp8)


    Hey,

    I am building a website at the moment using a child-theme based off the latest version of Appointment.

    By default the Post slider does not have a call to action button, but I have edited the index-slider.php to include

    <div class="blog-btn-area-sm"><a href="https://localhost/wordpress/?p=<?php echo 2; ?>" class="blog-btn-sm" class="blog-btn-sm"><?php _e('Read More'); ?></a></div>

    Which I took from the demo-slider and inserted it just below line 84 of the original code (the echo 2 is just for testing).

    Is there an easier way to implement this button and have it link to the appropriate post.

    Thank you in advance.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi

    There are no need to add any snippet of code. Because read more button leads to expand more text. For eg if your text have 40 character and if we are showing 25 character(default) then read more button is showing else it will not.
    IF you want to show read more button in less text (for eg 15) then you need to make changes in functions.php file.
    Find this line
    if(str_word_count($output) < 25)
    and replace with
    if(str_word_count($output) < 15).

    Thanks

    Thread Starter tomwp8

    (@tomwp8)

    Hey,

    Thanks for this, I hadn’t put much content in yet so that is why It wasn’t showing.

    Hi

    If your issue resolved.
    then
    let us know to close the ticket.

    Thanks.

    Thread Starter tomwp8

    (@tomwp8)

    This has been solved, thank you.

    I have another question though, how do you restrict the footer widget area to only on the home page?

    Thanks again

    Hi

    Kindly Replace the appointment theme package >> footer.php and replace all the code with the code mentioned in the link.

    Thanks

    Thread Starter tomwp8

    (@tomwp8)

    This has resolved my issue,

    Thank you very much.

    Hi

    if you are happy with this theme

    I would like to know , what rating you will assign to this theme.

    Please open below link and assign rating for this theme

    https://www.ads-software.com/support/view/theme-reviews/appointment

    Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Call to action button (Slider)’ is closed to new replies.