WordPress.org

Ready to get started?Download WordPress

Forums

Use the switch to blog functionality on sidebars (3 posts)

  1. ash2dust
    Member
    Posted 3 years ago #

    Hi There,

    I am using the constructor theme on my network of sites, and was curious if I could use the <?php switch_to_blog($new_blog) ?> anywhere within my files/themes to force it to use only the data from 1 site.

    i would like all my sidebars to look the same across my multisite.

    I have managed to do this with my menus in my header, but am not sure where the information for the sidebars is located at.

    Thanks!
    Ash

  2. AntonShevchuk
    Member
    Posted 3 years ago #

    Hi
    You can found sidebars logic in sidebar.php and sidebar-extra.php - this is two file consists of call widgets.

  3. ash2dust
    Member
    Posted 3 years ago #

    thanks for that Anton! Would you know what the best way would be to make the same sidebars to appear on each blog on a network?

    Thanks
    Ash

Topic Closed

This topic has been closed to new replies.

About this Topic