Jump to content
Sign in to follow this  
alexb

Changing 'says' field in Comment section

Recommended Posts

alexb    0
alexb

Hi all -

 

Hoping someone can help with something that is driving me buggy.

 

When someone leaves a comment on the blog page of my site I get the word 'says' automatically generated after their name. i.e.:

 

ALEX BULGO says

 

XXXXXXXXXXXXXX etc.

 

I would like to replace 'says' with a colon.

 

I used the following, placed in the functions.php of my child theme, to alter the submit button text:

 

function comment_reform ($arg) {
$arg['label_submit'] = __('post');
return $arg;
}
add_filter('comment_form_defaults','comment_reform');

 

Could I also use this to replace 'says' - and if so, how do I find out which field to replace 'label_submit' with?

 

Many thanks

 

Alex

 

Share this post


Link to post
Share on other sites
Rob    547
Rob

Hi Alex,

 

Can you provide me a link to one of the pages with comments?

 

PlatformPro is a deprecated product with no updates in future. We're recommending to all PlatformPro clients that they upgrade to PageLines Framework as soon as possible to avoid a breakdown of the Platform. Each time WordPress is updated, there's increased risk of failure in any deprecated product.

 

Meanwhile, to save yourself considerable coding, which we cannot support, you may simply prefer to use a comments plugin like LiveFyre or Disqus, which work in both PlatformPro and PageLines Framework, seamlessly.

 

Personally, I don't recommend altering code at this point, as doing so might well prompt some additional, unforeseen issues which can't be fixed.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
alexb    0
alexb

Thanks Rob

An example would be:

http://alexbulgo.com/the-man-who-made-thunderbirds-go/

where comment authors have 'says' auto inserted after their names.

An amenable to upgrading, but I wonder whether the custom coding etc will be preserved on upgrade or whether I should back everything up first?

Cheers

Alex

Share this post


Link to post
Share on other sites
Rob    547
Rob

The custom coding can be copied before activating the new Framework, and if not carried over dynamically, pasted into the same location.  Noting that there are major CSS changes between the two products, you may expect it to be necessary to do some tweaking.  Otherwise the transition should be very easy.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
Rob    547
Rob

Try this in Dashboard > PlatformPro > CustomCode > CSS Rules:

.says {display: none;}

If that doesn't work, try it like this:

.commentlist cite says {display:none;}

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
alexb    0
alexb

Thanks Rob - much appreciated.

Alex

Share this post


Link to post
Share on other sites
Rob    547
Rob

Did it work?

 

Let me know how that goes!


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
alexb    0
alexb

Happy to report that the first one worked perfectly - thanks again!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×