badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Change number of Recent Works

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #23063
    catherine
    Participant

    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?

    #23140

    Hi 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!

    #23529
    catherine
    Participant

    Can you point me to a tutorial or helpfile which explains how to create a child theme please?

    #23552

    Hi 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!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.