- Themes are from Customify
- Multiple Themes plugin: http://zatzlabs.com/project/multiple-themes/
- The original theme was copied into subfolders in the wp_content folder
- public_html/our.mviec.com/wp-content/themes/customify
- public_html/our.mviec.com/wp-content/themes/customify_preschool
- public_html/our.mviec.com/wp-content/themes/customify_primary
- public_html/our.mviec.com/wp-content/themes/customify_esl
- The original theme was copied into subfolders in the wp_content folder
- The Site Icon was set using code
- I wanted to use the PHP Inserter plugin but it just wouldnt work for me
- So i used the “Header,Footer and Injections” plugin
- This line of code was entered into the <Head> page injection
- <link rel=”shortcut icon” href=”<?php echo bloginfo(‘stylesheet_directory’) ?>/favicon.png” >
- And the favicon.png for each department was copied into the root of each customify theme installation
- Slider Revolution (paid) was used to create the sliders.
- It is brilliant.
- Each slide is a standard WordPress post which has been categorised based on department (Primary, Preschool etc)
- The featured image is added to the page (and any other text but this is not shown on the slide, only when the user views the page)
- An Revolution overlay slide is assigned to the post
- And now the slider will show my posts as slides
- This has been used for multiple pages on the site as well as to display on a large screen TV in our school reception. It replaced Google Slides.
- Editor
- Elementor editor is used
- Also Essential Addons
- Menu System
- Each department has its own menus
- These are made possible using the “Conditional Menus” plugin: https://wordpress.org/plugins/conditional-menus/
- The menus are created as normal in the Menus area
- The plugin creates a new tab called “Manage Locations” on the page where conditions can be set to display particular menus when those conditions are satisfied.
- This is a little tricky with multiple themes
- The conditional menu needs to be configured when the appropriate theme is ACTIVE.
- The setting is only visible when the theme is active so you know whether it is present.
- I have filtered on ‘Category Singles’. I dont really know what that is but it seems to work.
- The context sensitive sidebars are made possible with the “Content Aware Sidebars” plugin
- https://wordpress.org/plugins/content-aware-sidebars/
- One sidebar is created for each department
- Into these sidebars widgets can be placed as required
- The content for the sidebars needs to be related to the department
- For example, a ‘related posts’ widget must filter posts on the department
- To do this we used ‘Recent Posts Extended‘ plugin and configured it to filter on Categories.
- Slides shown in the Revolution Slider need to expire when they are no longer relevant.
- This is required when the slides are advertising some event
- The was done using Post Expiration plugin: https://wordpress.org/plugins/post-expiration-date/
- The Duplicate Post plugin makes life a lot easier
- https://wordpress.org/plugins/duplicate-post/
- The Featured Image Admin Thumb plugin made it a lot easier to see what images have been attached to posts when looking at the list of posts in the Admin screens.
- https://wordpress.org/plugins/featured-image-admin-thumb-fiat/
- A Short Code was created to show the featured image on posts easily without having to actually add the image in the editor
- This saves a lot of time – just the feautured image needs to be set and the short code pasted into the body of the post
- The short code is created using the PHP Inserter plugin
-
function featured_img_left() { if (has_post_thumbnail() ) { $image_id = get_post_thumbnail_id(); $image_url = wp_get_attachment_image_src($image_id,'full'); $image_url = $image_url[0]; $result = '<img src="'.$image_url.'" class="pic_left" />'; return $result; } return; } add_shortcode ('FeaturedImage', 'featured_img_left');
-