0

I want to create a section on my website which will contain information about different locations, this section has tabs width different information:

content-image

My idea was to register a sidebar and then use a custom template and just call get_sidebar('location'); where necessary.

register_sidebar(array(
    'name'          => 'Ubicación',
    'id'            => 'location',
    'description'   => 'Agregar galerías de ubicaciones',
));

I want that every widget on my "location" sidebar works as a tab element, but I can't find a way to get the widgets and manipulate the result as I want and be able to create my own sidebar html.

Also if the user adds the new Gallery Widget the result must look as the image above.

Do you think that using sidebars and widgets is the best option? Do you have a better approach?

1 Answer 1

0

Technically "off topic" here as your actual question is open-ended and there is lots of room for opinion. https://wordpress.stackexchange.com/help/dont-ask

Sidebars and widgets are a perfect way to organize these elements. Keep in mind these are simply tools to organize blocks for repeated use in various locations.

So, officially, my answers to your two questions are:

Yes. No.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.