Enigma Recent Posts widget set to category

Ask Enigma Premium Theme Installation, Settings & Configuration, Problem, Error & Bug Related Issues Here

Moderator: forum_m

Post Reply
mattsmedia43
Posts: 5
Joined: December 9th, 2016, 11:04 pm

Enigma Recent Posts widget set to category

Post by mattsmedia43 » May 25th, 2018, 11:24 pm

I would like to set the "Enigma Recent Posts" widget to a specific post category.

Can this be done?

This is the website I need help with: http://cifac.org/

support_staff
Posts: 7252
Joined: February 26th, 2015, 1:40 pm

Re: Enigma Recent Posts widget set to category

Post by support_staff » May 26th, 2018, 1:01 pm

Hello,

Open the functions.php file of your child theme and paste the code given in the below link at the end of a file and save the file -

https://pastebin.com/ZJLWZCwj

Now go to Appearance -> widgets -> here you can see Enigma Recent Posts1 widget.
In this widget you can give category name and save.

Thanks.

mattsmedia43
Posts: 5
Joined: December 9th, 2016, 11:04 pm

Re: Enigma Recent Posts widget set to category

Post by mattsmedia43 » May 27th, 2018, 3:53 am

Thank you very much for your quick response to my inquiry.

When I use the Enigma Recent Post1 widget I can only use the "Default Template" under the Page Attributes. If I use any other Page Attribute > Template, all posts in all categories will show on the page.

I would like to use the "Blog Full-Width" template, Page Attribute with only one category when using the Enigma Recent Post1 widget.

Is this possible?

Thanks again.

support_staff
Posts: 7252
Joined: February 26th, 2015, 1:40 pm

Re: Enigma Recent Posts widget set to category

Post by support_staff » May 28th, 2018, 11:26 am

Hello,

Please tell us clearly what you want.
You want to add sidebar in "Blog Full-Width" template.

Thanks.

mattsmedia43
Posts: 5
Joined: December 9th, 2016, 11:04 pm

Re: Enigma Recent Posts widget set to category

Post by mattsmedia43 » May 30th, 2018, 4:00 am

Sorry that I was unclear,

I would like to create a page using the blog full-width page attribute, WITHOUT a sidebar and have all posts from a selected category in a single page format on that page so my website users can read the post articles. I thought I could use the Enigma Recent Posts widget to do this but maybe you could recommend another way?

If this is not cleat either, I apologies in advance.

support_staff
Posts: 7252
Joined: February 26th, 2015, 1:40 pm

Re: Enigma Recent Posts widget set to category

Post by support_staff » May 30th, 2018, 11:20 am

Hello,

Copy and paste the category.php file from parent theme to a child theme -> replace it with a code given in the below link and save the file -
https://pastebin.com/Q9rrqfx9

Now your category page is full-width.

Thanks.

Post Reply

Return to “Theme Installation, Settings & Configuration, Problem, Error & Bug”