Multisite Pages

Hello,

Ok this is a long shot but I really need some help for a few questions with things I am really struggling with.

We have built a site via wordpress multisite using the theme Flash Pro. Once this site is finished there will be over 75 sub sites across the network.

First question, I was wondering if this is possible, say the 'Our Programme' page on the main site was copied across to a sub site, http://tumbletots.allanlove.net/gloucester/our-programme for example, but you stay on the main sites Our programme Page but the url changes to http://tumbletots.allanlove.net/gloucester/our-programme. This way you can only change the text on the main site instead of doing it on the main site AND sub site?

Second Question, again the same site and sub site. I have had to use custom post types for the http://tumbletots.allanlove.net/news page.
I was wondering how/if I can make it so I add a offer via the main site - this filters in to ALL sub sites ? Then if I wanted to remove this post then would it/how would it remove from the Sub sites.
Then If a sub site adds a post but wants it to display on the main site then how can I do this and then again the same if the sub site deletes it how/will it delete from the main site?

Third Question, the pages where there is an accordion (http://tumbletots.allanlove.net/legal-notices/ and http://tumbletots.allanlove.net/faqs/) but mainly the legal notices. When you open the top one and scroll down to read it and then open the one below it this one then opens in the middle - I believe this is because of the fixed header but i am unsure and not sure how/if I can fix this?

Finally, On the individual posts theres a green header bar which is on all pages and posts. I need this to be full width. I have got each custom post type php file and I will send one through. I have tried to move
<div class="my-news-banner" style="margin-bottom:30px;"><h1>News</h1></div> above get_header(); ?> which then broke the site.

(Below is the single-news.php)

<?php
/**
 * The template for displaying all single posts.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
 *
 * @package Flash
 */

get_header(); ?>

<div class="my-news-banner" style="margin-bottom:30px;"><h1>News</h1></div>

    <?php
    /**
     * flash_before_body_content hook
     */
    do_action( 'flash_before_body_content' ); ?>

    <div id="primary" class="content-area">
        <main id="main" class="site-main" role="main">

<input id="back_to_all_news" action="action" onclick="window.history.go(-1); return false;" type="button" value="? Back To All News" />

        <?php
        while ( have_posts() ) : the_post();

            if( get_theme_mod( 'flash_remove_single_bio', '') != '1' ) {
                get_template_part( 'template-parts/author-bio', '' );
            }

            /*if ( get_theme_mod( 'flash_remove_single_nav', '') != '1' ) {
                get_template_part( 'template-parts/post-navigation', '' );
            }*/

            /**
             * flash_before_comment_template hook
             */
             if(function_exists('bcn_display')) {
				echo '<div id="custom_bcn_display">';
				bcn_display();
				echo '</div>';

				}
            get_template_part( 'template-parts/content', get_post_format() );
            do_action( 'flash_before_comment_template' );

            // If comments are open or we have at least one comment, load up the comment template.
            if ( comments_open() || get_comments_number() ) :
                comments_template();
            endif;

            /**
             * flash_after_comment_template hook
             */
            do_action( 'flash_after_comment_template' );

        endwhile; // End of the loop.
        ?>

<?php the_post_navigation( array(
'next_text' => '<span><i class="fa fa-angle-double-right"></i></span>
<span class="entry-title">Next </span>',
'prev_text' => '<span><i class="fa fa-angle-double-left"></i></span>
<span class="entry-title">Previous </span>',
) ); ?>

        </main><!-- #main -->
    </div><!-- #primary -->

    <?php
    /**
     * flash_after_body_content hook
     */
    do_action( 'flash_after_body_content' ); ?>

<?php
get_sidebar();
get_sidebar( 'left' );
get_footer();

I appreciate your help

Regards

A

  • Ash

    Hello allanlove

    About first question, this is not possible out of the box. You may try our cloner plugin: https://premium.wpmudev.org/project/multisite-content-copier/ But still it won't be automatic. After making changes, you have to copy that page again to all subsites.

    About second question, this needs a big amount of custom code. There is no automatic functionality as far as I know. You need to create a meta box, so when you create a post then checking the meta box would copy the post to all subsites and vice versa. Similarly, when a post is deleted, then you have to use delete_post hook to delete all posts from other sites.

    About third question, yes this is because of the fixed header. There is the only way to scroll it down, is to use jquery to scroll down when an accordion is open. But for that, either you have to edit the accordion script or if there is any js hook, we can use that hook to scroll down. It's better to contact the plugin developer for available options.

    About the last question, you need to change the theme structure. The parent div of "my-news-banner" is from get_header(), so you can't move in that way. I have tried using jQuery, but it seems the html structure is not well as well as the css is not organized. Many elements are placed there by forcing with css, so that didn't work as well.

    You may need to create a child theme, copy the header.php file in the page template instead of calling get_header() function and then you can move the "my-news-banner" element to above the parent element.

    Hope it helps! Have a nice day!

    Cheers,
    Ash

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.