0
Welcome Guest! Login
0 items Join Now

Myriad: Recreating the Demo

Your Guide to Recreating Elements of the Myriad Theme for WordPress


Introduction

Myriad

Recreating features of the demo site used to show off some of the more interesting aspects of Myriad can be done fairly easily. All you need is the right plugins and settings, and you should be able to reproduce most (if not all) of the elements found in our demo site.

Below, we will break down some of these elements and give you the information you need to know to recreate them on your own site using the Myriad theme.

Keep in mind that a lot of the detail that makes our demos look so good are the result of many hours of hard work by our team, and some of them will require a moderate level of experience working with the WordPress back end. We have added most of these elements into the theme's core files in order to make them easily accessible without having to edit any code.

Recommended Plugins

Here is a list of RocketTheme plugins used to create the demo version of Myriad:

All of these plugins are included with the Myriad RocketLauncher, and can be downloaded and installed individually by going to the RocketTheme website.

Recreating the Front Page

The front page of the Myriad demo sits apart from the rest of the page layouts in that it features the latest and greatest features used in the theme. It is because of this that several widget and layout overrides were done. In this section, we will break down the settings you will need to recreate elements present in the front page of the Myriad theme.

For the front page, we used a Page Suffix to load the unique styling for it. You will need to create a Front Page override under Theme Settings. To get to this page, navigate to Admin > Myriad Settings. Once you have done that, simply select the Gizmos panel (tab) and enter the following in the Page Suffix field: rt-menu-home -rt-myriad-style.

Once this is done, you will need to assign the Front Page override to the page. You can find more details about this assignment here.

Theme Settings

The first thing you will need to do in order to set your front page apart as it appears in the demo is to create a setting override. This can be done by navigating to Administrative Dashboard -> Myriad Theme and selecting the + icon located just above the Style settings tab.

It would be a good idea for organization to name this layout override something like Front Page as it would be used only for the front page of your site.

Assignments

The next step you will need to take in creating your Theme Settings override is to assign the Front Page override to the page you wish to use as the home page. Under the Theme Page Types list, you will want to select your desired page.

Doing this will assign the override to this page. This will allow the override to cover all access scenarios that would lead a user to your site's main home page.

You can find more information about the entire override breakdown for both the front page and our default settings in the demo by visiting the override portion of this tutorial.

Widget Settings

Theme
1
Header - Gantry Menu
2
Slideshow - RokSprocket (Features)
3
FullStrip - RokSprocket (Strips)
4
First Full Width - RokSprocket (Features)
5
Feature - Text
6
Feature - Text
7
Utility - Text
8
SecondFullWidth - RokSprocket (Strips)
9
Main Top - Text
10
Sidebar - RokSprocket (Lists)
11
Extension - Text
12
Bottom - Text
13
Bottom - Text
14
Bottom - Text
15
Footer - Custom Menu
16
Copyright - Gantry Branding
17
Copyright - Gantry Copyright
18
Copyright - Gantry To Top
19
MainBody

Like any Gantry theme, Myriad utilizes widget overrides to allow different widget placements for various areas of your WordPress site. This makes it possible to not only utilize the full power of the Gantry framework, but to make each area of your site uniquely suited to meet your user's needs.

Below, you will find the widget placement and settings for the various widget positions as they appear in the Front Page widget override. Not all of these positions were overwritten. Some positions (such as the Header section) are often set in the primary default widget setting.

One important thing to note here is that many of the widget sections included in our demo are split up using a Gantry Divider widget. This widget tells WordPress to start a new widget column beginning with the widget placed directly below the divider in the section. You will see the Gantry Divider in any widget section breakdowns as they are included in the demo.

Widget Sections

RokSprocket and RocketLauncher Settings

Some aspects of the RokSprocket demo content in the Slideshow position are hard-coded in the demo.less file. This includes images for the following widgets:

If you wish to use custom images for these widgets, you can do so by either switching the Demo Style setting in the Theme Settings to Custom or remove the fp-preset-images suffix from the Module Class Suffix field in the module's Advanced settings.

To switch the Demo Style setting, you will need to navigate to Administration -> Myriad Theme and selecting the Style tab. By default, the Demo Body Class option will be set to the preset selected. By switching this option to Custom it will ignore the preset settings for the RokSprocket module found in Demo.less.

For reference, and in the event that you wish to modify this code to meet your individual needs, here is the section of the demo.less file that sets this behavior.

// Demo Preset Images
.demostyleImage(@index) when (@index > 0) {
    (~".demostyle-type-preset@{index}") {
        .fp-preset-images {
            &.fp-slideshow .sprocket-features-index-1 .sprocket-features-img-container.sprocket-fullslideshow-image {
                background-image: url(../../../rockettheme/rt_myriad_wp/home/fp-slideshow/img-01-preset-@{index}.jpg) !important;
                background-position: center;
                background-repeat: no-repeat;
            }

            &.fp-roksprocket-strips-fullstrip {
                .sprocket-strips-apollo-item {
                    img {
                        background-size: 100%;
                    }
                    img[src$="img-01.jpg"] {
                        background-image: url(../../../rockettheme/rt_myriad_wp/home/fp-fullstrip/img-01-preset-@{index}.jpg);
                    }
                    img[src$="img-02.jpg"] {
                        background-image: url(../../../rockettheme/rt_myriad_wp/home/fp-fullstrip/img-02-preset-@{index}.jpg);
                    }
                    img[src$="img-03.jpg"] {
                        background-image: url(../../../rockettheme/rt_myriad_wp/home/fp-fullstrip/img-03-preset-@{index}.jpg);
                    }
                    img[src$="img-04.jpg"] {
                        background-image: url(../../../rockettheme/rt_myriad_wp/home/fp-fullstrip/img-04-preset-@{index}.jpg);
                    }
                    img[src$="img-05.jpg"] {
                        background-image: url(../../../rockettheme/rt_myriad_wp/home/fp-fullstrip/img-05-preset-@{index}.jpg);
                    }
                    img[src$="img-06.jpg"] {
                        background-image: url(../../../rockettheme/rt_myriad_wp/home/fp-fullstrip/img-06-preset-@{index}.jpg);
                    }
                }
            }

            &.fp-roksprocket-slideshow-firstfullwidth .sprocket-features-index-1 .sprocket-features-img-container img {
                background-image: url(../../../rockettheme/rt_myriad_wp/home/fp-firstfullwidth/img-01-preset-@{index}.jpg) !important;
                background-position: center bottom;
                background-size: cover;
                background-repeat: no-repeat;
            }
        }
    }
    .demostyleImage(@index - 1);
}
.demostyleImage(6);
.demostyle-type-preset4 .fp-preset-images.fp-roksprocket-slideshow-firstfullwidth .sprocket-features-index-1 .sprocket-features-img-container img {
    background-position: top left;
}

Found errors? Think you can improve this documentation? Please edit this page. You can also view the history of this page.