Parallax Scroll by adamrob.co.uk"; $text.="

What's New?

"; $text.="

"; $text.="

"; $text.="Please visit adamrob.co.uk for more information and support."; $text.="

"; return $text; } function parallaxscroll_help_get_creating(){ //Returns whats new help text $text=''; $text.="

Parallax Scroll by adamrob.co.uk

"; $text.="

Creating a new Parallax

"; $text.="

"; $text.="

"; $text.="

"; return $text; } function parallaxscroll_help_get_options(){ //Returns whats new help text $text=''; $text.="

Parallax Scroll by adamrob.co.uk

"; $text.="

Options

"; $text.="

"; $text.="

Style

"; $text.="

"; $text.="

Parallax Settings

"; $text.="

"; $text.="

Mobile Settings

"; $text.="

"; return $text; } function parallaxscroll_help_get_styles(){ //Returns whats new help text $text=''; $text.="

Parallax Scroll by adamrob.co.uk

"; $text.="

Extending with CSS styles

"; $text.="

"; $text.="If you define a title and/or content, the following can be used to change the styles:"; $text.="

"; $text.="
In addition, parallax' can be targeted directly using the ID of the parallax. This is usefull when you want to change the style of only 1 or a selection of parallax'"; $text.=""; $text.="

"; return $text; } function parallaxscroll_help_get_fullwidth(){ //Returns whats new help text $text=''; $text.="

Parallax Scroll by adamrob.co.uk

"; $text.="

Full Width Issues

"; $text.="

"; $text.="Parallax scroll has been written to work across as many different themes as possible, however as everyones wordpress setup is different, and every theme is different it is very difficult if not near impossible to guarente that the plugin will work on every site. Parallax scroll is built and tested using the standard wordpress themes; this is the only base line that is availble to work against; therfore if you are having issues, please test it against the standard theme to check if its a fault with the plugin or the theme."; $text.="

"; $text.="

"; $text.="The full width issue is a common one, where the parallax does not span the full width of the page. Parallax scroll is designed to be full width out of the box. As standard it will size to the full width of the post. If this doesn't work as required, a full width option is availble. This is a bit of a hack to resize the parallax to the full width of the content area of the page/post. Because this is a bit of a hack, it may not appear correctly for everyone."; $text.="

"; $text.="

"; $text.="Why is this an issue on some themes? Well some themes, even though they claim are full width themes, are not actually full width at all. A lot of themes will actually be setup using divs with margins either side. They trick you into thinking its full width by setting the colors and borders to the same color. Unfortunatly, on themes like this its impossible for me to cater for, however you can modify the fullwidth.js script to target the specific width required yourself."; $text.="

"; return $text; } /*** ** Help Tabs ***/ function parallaxscroll_help_add_tabs() { $screen = get_current_screen(); // Return early if we're not on the book post type. if ( PARALLAX_POSTTYPE != $screen->post_type ) return; // Setup help tab args. $maintab = array( 'id' => 'parallaxscroll_help_main', //unique id for the tab 'title' => "What's New", //unique visible title for the tab 'content' => parallaxscroll_help_get_whatsnew(), //actual help text ); $createtab = array( 'id' => 'parallaxscroll_help_create', //unique id for the tab 'title' => "Create New Parallax", //unique visible title for the tab 'content' => parallaxscroll_help_get_creating(), //actual help text ); $optionstab = array( 'id' => 'parallaxscroll_help_options', //unique id for the tab 'title' => "Parallax Options", //unique visible title for the tab 'content' => parallaxscroll_help_get_options(), //actual help text ); $stylestab = array( 'id' => 'parallaxscroll_help_style', //unique id for the tab 'title' => "Extending Styles", //unique visible title for the tab 'content' => parallaxscroll_help_get_styles(), //actual help text ); $fullwidthtab = array( 'id' => 'parallaxscroll_help_fullwidth', //unique id for the tab 'title' => "Full Width Issues", //unique visible title for the tab 'content' => parallaxscroll_help_get_fullwidth(), //actual help text ); // Add the help tab. $screen->add_help_tab( $maintab ); $screen->add_help_tab( $createtab ); $screen->add_help_tab( $optionstab ); $screen->add_help_tab( $stylestab ); $screen->add_help_tab( $fullwidthtab ); } add_action('admin_head', 'parallaxscroll_help_add_tabs'); // Add fake metabox above editing pane for help guidence function parallaxscroll_help_ater_title( $post_type ) { $screen = get_current_screen(); // Return early if we're not on the book post type. if ( PARALLAX_POSTTYPE != $screen->post_type ) return; ?>

Parallax Scroll by adamrob.co.uk

Use this screen to setup your parallax. Once published, use the shortcode to display on a page or post. Remember to select your background image in the featured image section. For further help, use the help menu in the top right.