Hallo,
Seit der letzten Aktualisierung des Magazine Basic Themes ist nun der Weiterlesen Button in der Artikelvorschau unter den Artikeln verschwunden. Das letzte Mal habe ich das mit einem html Tag den ich hier im Forum gefunden nochmal hinbekommen und "Weiterlesen" der "Read More Button" war wieder da. Jetzt wird bei jedem Tag den ich mit google oder hier im Forum finde nur das Theme zerschossen und ich hoffe nun, dass ich hier jemanden finde, der weiß welchen Zeile ich wie verändern muß damit die read more Funktion wieder aktiv wird. Leider haben Plugin auch nicht zum Erfolg geführt.
Gruß Stefan
http://www.mindener-rundschau.de
endif; // mb_excerpt
add_filter( 'wp_trim_excerpt', 'mb_excerpt_more' );
if ( ! function_exists( 'mb_excerpt_more' ) ) :
/**
* Adds a read more link to all excerpts
*
* This function is attached to the 'wp_trim_excerpt' filter hook.
*
* Param string $text
*
* @return Custom read more link
*
* @since 3.0.0
*/
function mb_excerpt_more( $text ) {
return $text . '<p class="more-link-p"><a class="more-link" href="' . get_permalink( get_the_ID() ) . '">Read more →</a></p>';
}
endif; // mb_excerpt_more
add_filter( 'the_content_more_link', 'mb_content_more_link', 10, 2 );
if ( ! function_exists( 'mb_content_more_link' ) ) :
/**
* Customize read more link for content
*
* This function is attached to the 'the_content_more_link' filter hook.
*
* Param string $link
* Param string $text
*
* @return Custom read more link
*
* @since 3.0.0
*/
function mb_content_more_link( $link, $text ) {
return '<p class="more-link-p"><a class="more-link" href="' . get_permalink( get_the_ID() ) . '">' . $text . '</a></p>';
}
endif; // mb_content_more_link
add_filter( 'excerpt_length', 'mb_excerpt_length', 999 );
if ( ! function_exists( 'mb_excerpt_length' ) ) :
/**
* Custom excerpt length
*
* This function is attached to the 'excerpt_length' filter hook.
*
* Param int $length
*
* @return Custom excerpt length
*
* @since 3.0.0
*/
function mb_excerpt_length( $length ) {
return 40;
}
endif; // mb_excerpt_length
add_filter( 'post_gallery', 'mb_gallery_shortcode', 10, 2 );
if ( ! function_exists( 'mb_gallery_shortcode' ) ) :
/**
* Add Lightbox effect to gallery images.
*
* This function is attached to the 'post_gallery' filter hook.
*
* @since 3.0.0