Add More 'Features' to Features Section

Hello!
I found an earlier post (https://colorlibsupport.com/t/add-more-features-to-feature-section/) about adding more features to the features section, however, the advice given was that the fix applied to an old version of Shapely and was irrelevant now. Is there any way to do this? I want 4 features, rather than the default 3.

Thank you!

Jason

Hello there,

I hope you are doing well today.

The best way to do this would require you to create new code using the featured section widget file in the theme. Doing this would require the aid of a third part developer because it would entail altering the code of the theme.

Best Regards,
Support

Hello

I had the same problem, and after researching here I went after a solution.
If you have a little knowledge in basic PHP will know how to handle it.
Open the file wp-content/plugins/shapely-companion/inc/widgets /widget-home-features.php, and edit it:
(Ps.: Make a backup of the file :);

  1. Add more variables to $title, $icon, $body_content.
  2. Need to put a new “row” inside the “container”, and beware of the arguments within the new “for”. I needed 3 more features, so I got in the new row “for ($ i = 4; $ i> 3 && $ i <7; $ ++)”.
  3. Add the fields for title, icon and body_content in function form.

With these changes, the section behaved very well regarding responsiveness and layout.

I hope I have helped.

Best Regards

Vanduir

Thanks for the assist @vanduirf

I’m sure it will be valuable to other users of the colorlib community.

Best Regards,
Support

Updated the code, if anyone needs it:

https://github.com/paulzmuda/wp_shapely_theme/blob/patch-1/plugin/shapely-companion/inc/widgets/widget-home-features.php

Hello,

Thank you for adding the updated code for the community.

Best Regards,
Support

@paulzmuda

Just thought I’d post my response to using your code and I can’t seem to get it to work. No changes take place despite replacing my original file with the one you edited.

Hi,

Just a heads-up, in the new version make sure you edit this file, /wp-content/plugins/shapely-companion/inc/widgets/class-shapely-home-features.php

Let us know,

Thanks,
laranz.