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*

Quit "read more" link from Theme Horse Widgets: Service

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #9374
    Juan
    Member

    Please could you explain me how to quit the “read more” link from your Service Widget. I use the Service Widget at the Business Page Sidebar and although I put just 2 words it always links it to a page where the same content (2 words) is repeated.

    I just wanted to use the services to give a fast overview about our Services without linking it. Is this possible?

    thanks a lot!

    #9375

    Hi Juan

    We have designed this theme in this way. if you really want to remove the readmore link then you just go to attitude-pro->library->structure->content-extension.php

    from here you can edit the link.

    But we recommened not to remove it because if you update our latest version then all your customization code will be lost. If you dont update then it will work fine.

    Regards
    Sunil

    #9712
    Juan
    Member

    Hello Sunil,

    I’m unfortunatly no expert in php and can’t find the file I should edit or quit in content-extension.php. Every time I change something appears a bug and the administration site as well as the frontpage appear in white..

    Could you please help me and tell me more exactly what I have to change?

    Thank you very much.

    #9716

    Hi Juan
    We are sorry that we cannot edit code because we have designed our theme on this way. If you really like to change the code then first better make chlid theme and only customize the code.Because if you update our new version then all your customization code will be lost. So better make child theme.

    There is content-extension.php

    there is one function name
    attitude_business_template_widgetized_content()

    from here you are getting sidebar

    you go to the attitude\library\widgets\attitude_widgets.php

    there is a class name
    class attitude_service_widget extends WP_Widget {

    Under this class there is function name

    
    function widget( $args, $instance ) {

    at below there is code
    <a class="more-link" title="<?php the_title_attribute(); ?>" href="<?php the_permalink(); ?>"><?php _e( 'Read more','attitude' ); ?></a>

    remove this code

    Hope this helps you.

    Regards
    Sunil

    #10092
    Juan
    Member

    Hello Sunil,

    thank you so much for explaining me in detail how to solve this problem!

    I intented to change it step by step but still have some doubts.

    What should I do with the content-extension.php? You coment that I get the sidebar, but I’m really unexperted and don’t know which sidebar I should have in mind and if changing something in this doc.

    in the attitude_widgets.php I find the class name “class attitude_service_widget extends WP_Widget {”
    but can’t find the code I should remove below.

    The only code that is similar to yours is between lines 569 and 570:
    ” href=”<?php the_permalink(); ?>”><?php echo $options[ ‘post_excerpt_more_text’ ]; ?>

    Is it this one?

    Thanks a lot.

    #10093
    Juan
    Member

    the code I found between lines 569-570 is: ” href=”<?php the_permalink(); ?>”><?php echo $options[ ‘post_excerpt_more_text’ ]; ?>

    Should I remove this one?

    #10096

    just remove the text read more only and for the excerpt length you can set it from the theme options-> design options-> excerpt length.
    Still if you are unable then you may hire a developer to fix the problem. We will support only the theme issue not the coding of the theme.
    Thank you

    #10434
    Juan
    Member

    Hello Sunil,

    thanks to your indications we finally achieved to quit the “read more” links.

    Thanks a lot!!!

    #10438

    hi from the attitude_widgets.php you need to remove this code on line number 285

    						<?php if( !empty( $options[ 'post_excerpt_more_text' ] ) ) { ?>
    						<a class="more-link" title="<?php the_title_attribute(); ?>" href="<?php the_permalink(); ?>"><?php echo $options[ 'post_excerpt_more_text' ]; ?></a>
    						<?php } ?>

    Hope this may help you.

    #11141
    Gregor
    Participant

    Where can i change “read more” to “Preberi več”, i need this because my site is not in english language.
    Thanks

    #11149

    Hi Gregor,

    You go to the dashbaord -> appreance -> theme-options -> advance options -> excerpt options -> Post Excerpt More Text
    There you may add your text Preberi več and it will display your text on readmore button.

    Thank you

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