Register widget area vs custom fields… pros & cons

Community Forums Forums Design Tips and Tricks Register widget area vs custom fields… pros & cons

This topic is: resolved

This topic contains 3 replies, has 3 voices, and was last updated by  lucaslem 1 year ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #65572

    lucaslem
    Participant
    Post count: 88

    Hi,
    I’m considering adding a custom content area on home page which will serve as a call-to-action block. It occured to me that I can approach this one of two ways:

    1. Register new widget area — something like this
    2. Use custom fields (ACF) — something like this

    Is there a “best practice” for this sort of customization? What are the pros and cons of one approach versus the other? Which way would you go and why? Thanks to both Carrie Dils and Brad Dalton for their great tutorials!

    Thanks!

    #65596

    David Chu
    Participant
    Post count: 1371

    Hi,
    Interesting question. I don’t think there’s a strong right answer here. I use Custom Field Template, but it is geekier than ACF, so it’s not for everyone, but it’s my favorite.

    I have one thought. If you’re just sticking plain text or just a pinch of HTML into the call to action, a widget is fine. If you use ACF, you can get WYSIWYG, and you may want that. Then again, you could use the Black Studio TinyMCE to get WYS into the widget! So it’s all good, to coin a phrase!

    Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

    #65620

    braddalton
    Participant
    Post count: 10214

    Widget area in your case.

    I would only use Custom Fields if you want to display different content in the same hook position.

    You can also code it in a front page template of using your functions file.

    If it’s only one widget area, i would use the functions file otherwise i would copy an existing child themes front page template and use that for multiple widgets.


    #65863

    lucaslem
    Participant
    Post count: 88

    Thanks to you both for your thoughts. Brad, I think your logic of determining whether I will be using the single hoook position for different content makes most sense in this case.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Register widget area vs custom fields… pros & cons’ is closed to new replies.