- This topic has 10 replies, 3 voices, and was last updated 10 years, 5 months ago by Theme Horse Support Team.
-
AuthorPosts
-
April 9, 2014 at 11:44 am #9374JuanMember
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!
April 9, 2014 at 12:54 pm #9375Theme Horse Support TeamKeymasterHi 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
SunilApril 25, 2014 at 7:24 am #9712JuanMemberHello 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.
April 25, 2014 at 8:46 am #9716Theme Horse Support TeamKeymasterHi 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
SunilMay 7, 2014 at 12:19 pm #10092JuanMemberHello 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.
May 7, 2014 at 12:21 pm #10093JuanMemberthe code I found between lines 569-570 is: ” href=”<?php the_permalink(); ?>”><?php echo $options[ ‘post_excerpt_more_text’ ]; ?>
Should I remove this one?
May 7, 2014 at 1:09 pm #10096Theme Horse Support TeamKeymasterjust 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 youMay 19, 2014 at 10:30 pm #10434JuanMemberHello Sunil,
thanks to your indications we finally achieved to quit the “read more” links.
Thanks a lot!!!
May 20, 2014 at 5:15 am #10438Theme Horse Support TeamKeymasterhi 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.
June 10, 2014 at 7:14 am #11141GregorParticipantWhere can i change “read more” to “Preberi več”, i need this because my site is not in english language.
ThanksJune 10, 2014 at 11:16 am #11149Theme Horse Support TeamKeymasterHi 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
-
AuthorPosts
- You must be logged in to reply to this topic.