• Hi there,

    I have installed a theme (sight) which uses a slideshow if a particular post widget (“use in slideshow”) is checked.

    Now i like the theme to show the slideshow and menus for all registered users on their blog/subdomain. So the superadmin is in control of the slideshow.

    How can i alter/customize the theme any tips, suggestions?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Well, each blog is independent, and the theme settings are independent to each blog.

    You have to alter those settings to a global table instead, and probably alter the theme part so it shows the slideshow only from the main blog.

    Thread Starter DDT

    (@ddt)

    tx andrea_r,

    Is there a function which returns the post of a certain blog_id???
    I want to try to change the slideshow from

    $args = array(
            'meta_key' => 'sgt_slide',
            'meta_value' => 'on',
            'numberposts' => -1,
            );
        $slides = get_posts($args);

    to something like

    $args = array(
            'meta_key' => 'sgt_slide',
            'meta_value' => 'on',
            'numberposts' => -1,
    'blog_id' => 1,//only main blog
            );
        $slides = get_posts($args);

    Any tips?

    edit
    ok i add this but now the featured image isn’t displayed??

    switch_to_blog(1);
        $slides = get_posts($args);
    	restore_current_blog();

    Thread Starter DDT

    (@ddt)

    ok switch_to_blog() and restore_current_blog in header.php did the trick so far.

    But i can think of a view issues
    1/ the search form will only search blog_id 1, right??
    2/ making a custom menu i am happy with the general about, but when i add categories it only search the post from blog_id 1
    3 How to combine sitewide and blog specific posts, tags, categories etc.

    Thread Starter DDT

    (@ddt)

    How can i alter the base domain url for the menu??
    So i can have
    https://subdomain.domain.com/category/slug-1

    now it all points to
    https://domain.com/category/slug-1

    Well, you;re pulling it all from site 1…. so it shows the URL from site 1….

    Each site is *independent*.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to alter a theme for MU?’ is closed to new replies.