Hi Xeniya
I was hoping that you were using a child_theme but it doesn’t look like you are.
Try adding the following code to functions.php (I would suggest via ftp rather than the admin editor)
// Replaces the excerpt "more" text by a link
function new_excerpt_more($more) {
global $post;
return '<a class="moretag" href="'. get_permalink($post->ID) . '"> Read more</a>';
}
add_filter('excerpt_more', 'new_excerpt_more');
Thread Starter
Xeniya
(@chlamydia)
@salsaturation
I have a Child Theme.
Thanks for the solution but when I add the code that you posted to functions.php I get this http://snag.gy/HAegF.jpg above my page. Also, the […] is still there.
Is there anything else I can do?
strange – let me install the theme and try it out
Thread Starter
Xeniya
(@chlamydia)
This is what I have in my functions.php now:
<?php
function textInCircles() {
wp_enqueue_script( 'text-in-circles', get_stylesheet_directory_uri() . '/js/text-in-circles.js', '', '1.0', true );
}
add_action( 'wp_enqueue_scripts', 'textInCircles' );
?>
can you paste your you functions.php including the code I posted above
Thread Starter
Xeniya
(@chlamydia)
Like that? It doesn’t matter if I paste your code before or after mine. It still appear at the top of the page
<?php
function textInCircles() {
wp_enqueue_script( 'text-in-circles', get_stylesheet_directory_uri() . '/js/text-in-circles.js', '', '1.0', true );
}
add_action( 'wp_enqueue_scripts', 'textInCircles' );
?>
// Replaces the excerpt "more" text by a link
function new_excerpt_more($more) {
global $post;
return '<a class="moretag" href="'. get_permalink($post->ID) . '"> Read more</a>';
}
add_filter('excerpt_more', 'new_excerpt_more');
please note that code needs to be enclosed inside php tags like this
<?php
all code goes here
?>
Anyway try this…
<?php
function textInCircles() {
wp_enqueue_script( 'text-in-circles', get_stylesheet_directory_uri() . '/js/text-in-circles.js', '', '1.0', true );
}
add_action( 'wp_enqueue_scripts', 'textInCircles' );
// Replaces the excerpt "more" text by a link
function new_excerpt_more($more) {
global $post;
return '<a class="moretag" href="'. get_permalink($post->ID) . '"> Read more</a>';
}
add_filter('excerpt_more', 'new_excerpt_more');
?>
Thread Starter
Xeniya
(@chlamydia)
Oh, I made such a stupid mistake.
Thank you!
Have a nice day\night!