Remove text from Astrid FP: Services

Hi all,

I’d like to remove entirely text from Service Widget.
I tried following in front-services.php <?php echo wp_trim_words( get_the_content(""), 0 ); ?> but still have “…”

How can I get rid of them?

Kind regards, LiCeT

I’m having this same issue… how can we remove the word count period??

Hi,

You might try this code instead:
<?php /* echo wp_trim_words( get_the_content(), 12 );*/ ?>

Make sure you make these changes in child theme.

Regards,
Awan

Thx Awan, did the job!

Kind regards, LiCeT

@Awan - I’m probably overlooking it, but what folder is the font-services.php file located in?

Hi Morgan,

The file is located in inc/framework/widgets.

Please make sure you are working with the Child theme when customizing these existing code.

Regards,
Awan

@awan, I added that to my child theme and still have the …

Any other options? Not sure why it’s not working…

also tried something like

<?php echo wp_trim_words( get_the_content(), 50 ); ?>

and still have the …

Hi Morgan,

May I know the content of your child theme? You can paste the content of your index.php file in your child theme to pastebin.com then share the link here.

Regards,
Awan

Here you go: http://pastebin.com/ZzVPnbhe

Just a note, I added a front-services.php file to my Astrid-child theme folder with:
<?php /* echo wp_trim_words( get_the_content(), 12 );*/ ?>

Hi,

Sorry for the delay.
In your child theme directory, please make sure file front-services.php is located in inc/framework/widgets directory, see this http://prntscr.com/e5yyuo

Regards,
Awan