gavleson
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Plugins
In reply to: [WP-Polls] Text too smallThis seems more of a problem with your theme, than the plugin. But with that being said, you could edit your theme’s CSS. Go to Appearance > Editor and add —
.wp-polls-ul > li > strong > i > small { font-size: 1em; }
— or whatever size you want. That should do it. Or increase all the text in the poll with this CSS:
.wp-polls { font-size: 1.1em; }
You could probably also add styles directly to the poll template found in Polls > Poll Templates, or simply remove the <small>-tag there.
Forum: Themes and Templates
In reply to: [Treville] Display more-tag link textI finally figured it out myself…
- Create a child theme
- In the child theme, edit /template-parts/content.php on line 26 to replace
<?php the_excerpt(); ?>
with
<?php if( strpos( $post->post_content, '<!--more-->' ) ) { the_content(); } else { the_excerpt(); } ?>
- In the child theme, add the following code to functions.php:
// override parent theme's 'read more' for excerpts function child_theme_setup() { remove_filter( 'excerpt_more', 'treville_excerpt_more' ); } add_action( 'after_setup_theme', 'child_theme_setup' ); // use custom 'read more' link on excerpts function new_excerpt_more($more) { global $post; return '<a class="moretag" href="'. get_permalink() . '">[Read more]</a>'; } add_filter('excerpt_more', 'new_excerpt_more'); // add a 'read more' link to hand-crafted excerpts function manual_excerpt_more( $excerpt ) { $excerpt_more = ''; if( has_excerpt() || $has_teaser == true) { $excerpt_more = ' <a href="' . get_permalink() . '" rel="nofollow">[Read more]</a>'; } return $excerpt . $excerpt_more; } add_filter( 'get_the_excerpt', 'manual_excerpt_more' ); // use custom 'read more' link on posts with <!--more--> tag function new_read_more_link() { return '<a class="more-link" href="' . get_permalink() . '">[Read more]</a>'; } add_filter( 'the_content_more_link', 'new_read_more_link');
Edit CSS and classes to fit your wish.
Viewing 2 replies - 1 through 2 (of 2 total)