How to change font on "contact us " read more
-
Hi,
1) question :
I have a problem with the size of font on ” contact us”, on the home page, the size is ok like this http://www.abano-cosmetique.com/but on catégory, like here http://www.abano-cosmetique.com/laboratoire-thermal/ , the size of the font is not the same
2) i search also how to change ” read more” down the article like here http://www.abano-cosmetique.com/category/boue-minceur-thermale/
Thanks for ur help.
regards,
Olivier
-
Hi
1. use values in appropriate field For contact in Option panel.
in Your case –
Call Us Text : – (Text- only )Call Us Number : – (Numeric value only )
2. Use this code in custom css field ( Theme Appearnce >> Option panel >> General >> custom css ) for Read more.
.blog-readmore
{
margin-bottom: 30px; ( According to your need change value both are you )
margin-top: 10px;
}Thanks.
thanks for reply.
1) for the contact, i really use only text in : call us text ans numeric in call us number.
2) for read more, i just search how to change the title ” read more”.
regards?
ok, for contact I can not put a space between numbers ?
Hi
Change Read More Text please open content.php file in your theme Directory
and change line no. 21 Read More text.Thanks.
Hi,
thanks for ur reply.
I search content.php on wp-content/themes but i dont found the content.php where i can change “read more” text.on wp-content/themes, i have :
– spasalon
– twentyfiften
– twentyfourteen
– twentythirteenThanks for ur help.
regards.
Olivier
Hi
Are your want to change text at the bottom of this page .
Link http://www.abano-cosmetique.com/category/boue-minceur-thermale/Let me clear it so that we can assist you better.
Thanks
AkhileshYes is the texte “read more ” here http://www.abano-cosmetique.com/category/boue-minceur-thermale/
Thanks,
Olivier
Hi
Follow this Step And change Read more text
wp-content >> theme >> spasalon >> Content.php
line no. 21
Thanks
Thanks,
I follow wp-content >> theme >> spasalon >>, i have different files .php, but i dont have content.php
thanks for ur help.
Olivier
@imran this is not the desired file
https://themes.svn.wordpress.org/spasalon/1.5.2/functions/Excerpt/excerpt_length.php
Change all the instances of Read More with desired value..
Thanks
PriyanshuThanks @Webriti
can u tell me where i can found this file on wp-content >> theme >> spasalon >>
Thanks for ur help.
Olivier
spasalon >> functions >> Excerpt >> excerpt_length.php
Did that Work?
Thanks @Webriti
This the file, just for finish , and thanks aigain for ur help, can u tell me wich ” Read More” a need to change.Regards +++
<?php
// code to change length of blog excerpt
function spa_get_the_other_excerpt(){
global $post;
$excerpt = get_the_content();
$excerpt = preg_replace(” (\[.*?\])”,”,$excerpt);
$excerpt = strip_shortcodes($excerpt);
$excerpt = strip_tags($excerpt);
$original_len = strlen($excerpt);$excerpt = substr($excerpt, 0, 500);
$excerpt = substr($excerpt, 0, strripos($excerpt, ” “));
$excerpt = trim(preg_replace( ‘/\s+/’, ‘ ‘, $excerpt));
$len=strlen($excerpt);
if($original_len>500)
$excerpt = $excerpt.’ID) . ‘”> Read More‘;
return $excerpt;
}
// code to change length of service two column excerpt
function get_service_two_excerpt(){
global $post;
$excerpt = get_the_content();
$excerpt = preg_replace(” (\[.*?\])”,”,$excerpt);
$excerpt = strip_shortcodes($excerpt);
$excerpt = strip_tags($excerpt);
$original_len = strlen($excerpt);$excerpt = substr($excerpt, 0, 150);
$excerpt = substr($excerpt, 0, strripos($excerpt, ” “));
$excerpt = trim(preg_replace( ‘/\s+/’, ‘ ‘, $excerpt));
$len=strlen($excerpt);
if($original_len>150)
$excerpt = $excerpt.’ID) . ‘”> Read More‘;
return $excerpt;return $excerpt;
}// code to change length of about us services section two column excerpt
function aboutus_services_excerpt(){
global $post;
$excerpt = get_the_content();
$excerpt = preg_replace(” (\[.*?\])”,”,$excerpt);
$excerpt = strip_shortcodes($excerpt);
$excerpt = strip_tags($excerpt);
$original_len = strlen($excerpt);$excerpt = substr($excerpt, 0, 220);
$excerpt = substr($excerpt, 0, strripos($excerpt, ” “));
$excerpt = trim(preg_replace( ‘/\s+/’, ‘ ‘, $excerpt));
$len=strlen($excerpt);
return $excerpt;
}// code for service index excerpt
function services_excerpt(){
global $post;
$excerpt = get_the_content();
$excerpt = preg_replace(” (\[.*?\])”,”,$excerpt);
$excerpt = strip_shortcodes($excerpt);
$excerpt = strip_tags($excerpt);
$original_len = strlen($excerpt);$excerpt = substr($excerpt, 0, 169);
$excerpt = substr($excerpt, 0, strripos($excerpt, ” “));
$excerpt = trim(preg_replace( ‘/\s+/’, ‘ ‘, $excerpt));
$len=strlen($excerpt);
return $excerpt;
}
function spa_new_excerpt_more($more) {
global $post;
return ‘ID) . ‘”> ‘._e(‘Read More’,’sis_spa’).’‘;
}
add_filter(‘excerpt_more’, ‘spa_new_excerpt_more’);
//code for set the length of service excerpt
function spa_new_excerpt_length($length) {
return 40;
}
add_filter(‘excerpt_length’, ‘spa_new_excerpt_length’);
?>find this snippet
if($original_len>500) $excerpt = $excerpt.'<a class="blog-readmore" href="'. get_permalink($post->ID) . '"> Read More</a>'; return $excerpt;
- The topic ‘How to change font on "contact us " read more’ is closed to new replies.