you can write the script with a conditions
<?php is_front_page(){ ?>
<script>
jQuery(window).ready(function($){
$("#sidebarRight").animate({right: '0px'});
});
</script>
<?php } ?>
alternatively you can set the cookie or localstorage that the animation has been completed
<script>
if(!localStorage.getItem("animated")){ // check if the animated is set if not set do the animation
jQuery(window).ready(function($){
jQuery("#sidebarRight").animate({right: '0px'});
localStorage.setItem("animated", "yes"); // after comleting the animation set the animated so that animation does not happen again
});
}
</script>
Related Posts:
- How to move page templates to custom folder?
- Is it possible to manipulate the list of page templates?
- Returning Variables back into a template
- Can not Remove Archives and Meta from Sidebar
- Toggle Sidebar Display
- Where can I access my custom page template?
- Disable front-page.php template
- Single Page theme [closed]
- Move default page templates to sub directory
- Need help with adding templates (archives and sitemap) to WordPress child theme
- Templates dropdown not appearing using _s theme (underscores)
- Load different single.php templates according to post layout selection
- Template for front page (latest posts)
- How to show children pages as array
- Create a variable with string, array or multiple values
- What is the point of using the front-page.php template? [closed]
- Custom single template for a specific category
- Is it possible to stop selected plugins from loading on certain template pages?
- How does WordPress decide what template to use as frontpage
- How can I get wp_head() as a string instead of echoing it?
- Why does my short code get executed before other content?
- How can I see what template parts are being called for rendering the viewable page?
- How to get the name and description of a sidebar in theme?
- How to Handle CSS for Multiple Header header.php Files?
- Static Front Page problem
- How to override BuddyPress 3.0 bp-nouveau theme files?
- How do I display the “Archives” widget layout (sidebar) in WordPress by ‘year’ then by ‘months’?
- Setting hero/splash section as a blog post
- Where is the correct place(s) in twentysixteen’s header.php to add a Google webfont?
- How to retrieve an image from a post and display it before excerpt of a post? [duplicate]
- Switching between custom templates in a post type of the admin menu
- how can I remove the sidebar from my wp homepage [closed]
- New template, where to place CSS?
- get_query_var() and permalinks
- Add theme templates for child categories into the template hierarchy
- Move theme templates to subfolder without losing page associations
- Why are theme templates organized as multiple point of entry PHP files instead of reusing your theme’s index.php?
- Display a specific dynamic sidebar widgets on a specific page
- searchform.php override not working
- WordPress page templates in a directory
- How do I create a custom partial / template?
- get_page_template returning nothing
- Load child template based on parent
- Override template file i subfolders
- Can Page Templates be Applied to Archive and Post Templates?
- Custom metabox for custom page template
- Do i need to keep all the default WP templates files in a theme?
- how to display search term in the template full site editor
- How to create a custom page(not a template) in a theme
- Sort wp_query by sum of two meta fields
- How to override p2 breathe theme plugin in content template file?
- What can I use for small text when converting to WordPress?
- how to setup custom content structures
- “Theme without sidebar.php is deprecated”
- How to use get_template part in the plugin?
- How can I conditionally show different home page templates based on whether or not the user is logged in?
- How to create a template for Pages?
- Template for landing pages
- Unique design inside a specific category’s url
- Issue On Displaying Pages with Post Name Permalink
- How can I hard code my sidebar?
- What is the best way to build home pages with a lot of sections for distributable themes [closed]
- Should is_active_sidebar() always be used around dynamic_sidebar()?
- Shortcode call not working in WP Template
- Where to put custom page templates in theme?
- A post with a clear:both in its css destroy the theme design, and the sidebar is moved to the bottom
- How to add sidebar to Isola theme? [closed]
- Create theme for mobile phones and tablets only?
- Change the sidebar from left to right twentyfourteen theme
- How to create a WP theme that use BootStrap? [closed]
- Changing sidebar.php and footer.php depending on URL
- Custom theme template files
- Is it possible to have a Theme with built-in physical page files?
- How to differentiate the homepage structure from the category page structure in WordPress template?
- Recommended sidebar / content widths
- Trouble in creating a custom template on twentyeleven theme
- How to setup sidebar modules to use jQuery Accordian
- ACF get_sub_field ALT TAG in the repeater doesn’t show
- How to Modify WP_Includes/blocks/latest_posts.php
- Sidebar not displaying (theme development)
- How to implement pagination in category.php template
- Show Yoast SEO meta tags in Custom WordPress Templates (Theme)
- Cold Fusion to WordPress
- Using wp_add_inline_style Inside a Template File
- Group several custom global page templates in sub-folder
- Different stylesheet for different pages not working fully
- Undefined index: custom_sidebars
- Can you create a custom page with content in the center already defined?
- Creating a Playlist of Widgets
- How to display only some widgets of a sidebar?
- Problem with multiple menus in theme
- How to Remove Sidebar when get_sidebar() is not get called in page?
- Enable WP to accept standard jQuery code embeding between the tags [duplicate]
- WordPress two sidebar layout or theme
- Loop inside page template not working
- Incorrect sidebar showing on WooCommerce Store page [closed]
- Is there a way to have WordPress autodetect page templates in the page-templates directory and any sub-folders?
- What is the point of using archive.php instead of index.php?
- Theme template file for a specific custom taxonomy
- How to automatically set a Template Page Name next to a page in menu screen such as WooCommerce pages, front page, or posts page in wordpress?