Filtering the ThemeBlvd Read More Arguments
-
Topic
-
I’ve been investigating a few issues related to the use of the
<!--more-->
tag. Here is what I found:I can’t get the “more” link to display at all unless I add this to the top of
content.php
in my child theme.global $more; $more = 0;
Now I can see the link but I want to filter it. I found the
themeblvd_the_content_more_args
filter and I am using it like this:function rum_alter_themeblvd_read_more_link( $args ) { $args['text'] = 'Read more '; $args['color'] = 'slate_grey'; $args['icon_after'] = 'arrow-circle-o-right'; return $args; } add_filter( 'themeblvd_the_content_more_args', 'rum_alter_themeblvd_read_more_link' );
After altering the
global $more
, the button displays and hides the content below it. However, pressing the button doesn’t seem to do anything.1) How can we get the button to unhide the content below the button?
2) Is there a better way to alter the
global $more
so it works everywhere instead of dropping it in template files likecontent.php
orcontent-page.php
? … or, am I using this completely wrong?
- You must be logged in to reply to this topic.