WordPress.org

Forums

Custom Sidebars
[resolved] How to set a standard for before widget, after widget, before title, after title (2 posts)

  1. mdidesign
    Member
    Posted 1 year ago #

    Hello,

    I am using over 30 custom sidebars. And for each sidebar I will use the same "before widget", "after widget", "before title" and "after title"-code. Is there any way to set a standard for this instead of setting it up for over 30 sidebars?

    Something I can put in the functions.php maybe?

    Regards

    https://wordpress.org/plugins/custom-sidebars/

  2. WPMU DEV
    Member
    Plugin Contributor

    Posted 1 year ago #

    Hi @mdidesign,

    I hope you are well today and thank you for your question.

    To achieve this you can either use register_sidebars() function instead of register_sidebar() function or use the dynamic_sidebar_params filter declared in the wp-includes/widgets.php WordPress file.

    Best Regards,
    WPMU DEV

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Sidebars
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.