Tagged: child theme
- This topic has 3 replies, 2 voices, and was last updated 9 years, 5 months ago by Theme Horse Support Team.
-
AuthorPosts
-
March 13, 2015 at 1:21 pm #23063catherineParticipant
Hi there,
Apologies if this has already been answered: I did a search but it didn’t return anything 🙂
I would like to only have 2 Recent Works appearing on my site, rather than the default 3.
Is this easy to fix?
March 16, 2015 at 6:08 am #23140Theme Horse Support TeamKeymasterHi catherine,
You have to customize the code.You don’t have any other options to display it. The file is inside theme folder-> inc-> widgets-> interface_widgets.php on line no 379 under this class class
interface_recent_work_widget extends WP_Widget {
You have to customize your code under this class. Before making any changes in the code first of all create a child theme then only customize the code to be safe from data loss.
Thank you!
March 26, 2015 at 12:09 pm #23529catherineParticipantCan you point me to a tutorial or helpfile which explains how to create a child theme please?
March 27, 2015 at 5:26 am #23552Theme Horse Support TeamKeymasterHi catherine,
How to create child theme?
https://codex.wordpress.org/Child_Themes
We also have replied many times in forum so that you may search it in forum too.In functions.php of the child theme, create your widgets and register them. Just copy the parent widget, change the name of widget like Theme Horse Child: Featured Page Widget, make customisation and create your custom widget. If you do this, the widgets of parent theme and child both will appear. Use your custom widget of child theme instead of the parent theme.
Just making same file structure in the child theme like /inc/widgets won’t overwrite the parent file. Hope this helps.
Thank you!
-
AuthorPosts
- You must be logged in to reply to this topic.