Support » Theme: Twenty Twenty-One » side bar

Viewing 6 replies - 1 through 6 (of 6 total)
  • Oliver Campion

    (@domainsupport)

    Hello,

    You can use Options for Twenty Twenty-One plugin to add a sidebar to the theme.

    Oliver

    Thread Starter khaleil

    (@khaleil)

    Thanks Oliver Campion but can i get a side bar that i can pit adcode in and also i want header bar too. I am greatful for the help though

    Oliver Campion

    (@domainsupport)

    To do this without a plugin, you’d need to do the following for each widget area …

    1) Register the new widget area with a PHP function using register_sidebar()
    2) Inject the widget area into your child theme in the relevant place or use a hook to render it in the footer and JavaScript to move it into place
    3) Use some CSS to make sure it is displayed correctly

    Oliver

    Thread Starter khaleil

    (@khaleil)

    can you please gude me

    Thread Starter khaleil

    (@khaleil)

    should i put this in the header section or or theme header

    Oliver Campion

    (@domainsupport)

    We created the Sidebar option in Options for Twenty Twenty-One plugin so that people who are unable to do this are able to easily.

    If you really want to re-invent the wheel here, why not take a look at the code for that plugin to see how it does it?

    Oliver

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