Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Akshat Kedia
Akshat Kedia
11,107 Points

Change content on certain part of Wordpress Theme from the CMS.

On the Front Page of the site I am currently building, there is a event widget as shown in the Image given below.

https://www.dropbox.com/s/60jls453uquzvxc/wordpress-widget.PNG?dl=0

Now I want that my client should be able to change the Info and the background image from the Wordpress Admin Area/CMS.

How can that be implemented ? Custom Widget ?

1 Answer

Hi,

If you're planning on adding a lot of events you might be able to achieve this from a plugin such as Event Manager. This would give you the base for the user to input the info, add images, etc. and then allow you to style it using CSS. You could then display the latest event in that section for example.

If it's a one off, another option would be to use something like a custom post type and then create custom fields for the user to edit. You could then determine what fields are required / defaults and the user would update them as required.

Finally you could possibly achieve this through a custom widget as you mention.

Hope that helps in some way.

-Rich

Akshat Kedia
Akshat Kedia
11,107 Points

Hi Rich,

This info is really helpful. I should be able to crack this now. Thanks a lot ! :)

-Akshat

No problem :)