WordPress.org

Forums

Multisite themes, widgets, and more (9 posts)

  1. dave123678
    Member
    Posted 4 years ago #

    All:

    I have recently installed multisite, and am in need of some guidance/advice...

    In short, I am trying to understand some (what I expect to be) simple concepts in terms of themes, widgets, etc.

    If I want specific items to show in each network site (ie ads) do I need to modify each theme available to place widgets in a certain place? And how do I 'lock' down a theme to either allow/disallow different widgets.

    Similarly, is there anything I should know before activiting a theme network-wide? My goal is to allow as much user flexibility/creativity as possible, but also to ensure that certain widgets/ads show up in similar places.

    Thanks for any advice and/or tutorials...

    Best,

    David

  2. @mercime
    Volunteer Moderator
    Posted 4 years ago #

    If I want specific items to show in each network site (ie ads) do I need to modify each theme available to place widgets in a certain place?

    Make sure that each one of your themes has the wp_header and wp_footer actions so you could use that to insert ads and corresponding styling.
    http://wordpress.org/extend/plugins/tags/ads
    http://wordpress.org/extend/plugins/tags/advertisements

    And how do I 'lock' down a theme to either allow/disallow different widgets.

    Via theme's functions.php file

    Is there anything I should know before activating a theme network-wide?

    - Make sure that each theme has the wp_head and wp_footer actions in header.php and footer.php respectively
    - Make sure that the theme you're going to upload to your server and activate does not have obfuscated code.
    - You can activate a theme sitewide via dashboard > Super Admin > Themes

  3. It sounds mostly that you want to be able to have ads that users of the network can;t remove.

    Use an ad plugin that uses hooks to place ads (like after content) and if you want them unremoveable from the sidebar... hardcode it in the theme.

  4. dave123678
    Member
    Posted 4 years ago #

    Andrea and Mercime:

    Thanks for your feedback and replies.

    I think Andrea pretty much hit it on the head.

    I am guessing that the proper thing to do is to format each theme (and hard-code where necessary) before distributing to the user base.

    Correct?

  5. @mercime
    Volunteer Moderator
    Posted 4 years ago #

    Correct. Also:
    - You might want to disable Theme Editor http://wpmututorials.com/plugins/disabling-the-plugintheme-editor-3-0/
    - Make sure there's no obfuscated code that are not yours in the themes you upload to your server as well.

  6. dave123678
    Member
    Posted 4 years ago #

    Thanks...I guess it is actually a little more difficult to administer a network...

  7. @mercime - admins of each site cannot edit themes. Why disable the editor? Only super admins have access to it anyway. Even tho we wrote the post, it still depends on your setup.

    @Dave - yes, running a network for users IS a little more difficult.

  8. @mercime
    Volunteer Moderator
    Posted 4 years ago #

    @Andrea_r - I agree with security issues per Ron's post. More importantly, disabling theme editor ensures that a lazy person like myself has a copy of all theme changes I make in my own hard drive :-)

  9. Hee! :D

    Actually, I usually forget its there as I got out of the habit of using it in the early MU days.

    (yeah Ron & I argue these finer points over dinner too :P )

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.