jQuery('a[href^="http://www.everytrail.com/view_trip.php?trip_id=2027383"]').fancybox({
Try this.
<script type="text/javascript">
jQuery(document).ready(function($) {
jQuery('a[href="http://www.everytrail.com/view_trip.php?trip_id=2027383"]').fancybox({
'transitionIn': 'elastic', 'transitionOut': 'elastic', 'speedIn': 600, 'speedOut': 200, 'type': 'iframe', 'height': 800 });
});
</script>
I checked on my DEMO, and it works for me
Make sure your site already load jQuery : if there is no jquery.js loaded, use the following code to load
<?php wp_enqueue_script('jquery');?>
add the above code before <?php wp_head(); ?> in header.php //
Related Posts:
- How to load wp_editor via AJAX
- How to check if user is in back end?
- Is there a standard for naming plugin versions
- How can I have two different urls for the same page that load two different templates?
- Is there an A/B testing plugin that lets you vary the heading, featured image, and content in a WordPress post?
- Is it a bad practice to go directly to the mysql database while developing a plugin?
- Need a WordPress Plugin for Google Analytics, Favicon, Meta Keywords & Description?
- How does WordPress update plugins, without running into permissions issues?
- How to hide fields from my user profiles
- Register Custom Post Type from Plugin
- How to make my plugin theme-independent?
- Plugin to set all Posts in a certain Category to a certain Post Format
- Updating post meta for custom post types
- How should I handle errors within a plugin?
- Add custom buttons with custom actions in Edit Post screen in WordPress?
- pre_set_site_transient_update_plugins wont call on hosted webspace
- 403 Forbidden – You don’t have permission to access /wp-admin/admin-ajax.php on this server
- Setting up a multilingual wordpress site
- Put code into body tags near top, using a plugin
- I need to have two 1-5 star rating fields, only editable by admins. Which plugin should I use?
- 500 Internal Server Error when updating htaccess
- Create unique identifier that is displayed to the user and admin via Ninja Forms
- Is it possible to group plugins into a folder?
- Is it possible to enqueue CSS files from plugin before theme’s CSS files?
- How does WP handle multiple matching rewrite rules?
- Add Product Subtitle to Woocommerce Product Page
- How do I create a custom add media button modal?
- Not getting author rank when using return
- wp_trash_post is leaking memory
- Error “preg_match_all” with WordPress SEO by Yoast plugin [closed]
- Plugins Page invisible / white
- What are wsm tables for?
- How to block plugin activations with no known user or coming from unknown IP address range?
- Inserting external image in WordPress plugin to track the plugin instalation [closed]
- WordPress + PHP + IIS + PHP Fatal error: require():
- Adding regex filter to feedwordpress
- Use Cornerstone Plugin outside of WordPress Dashboard
- Programatically update non-wordpress repository hosted (self-hosted) plugins
- options creation for plugins
- Users are being redirected to main site when trying to register on subsite of my Multisite network
- Slider/text combination plugin
- How to disable a widget when dependent plugin is inactive?
- How can i force wp-admin to use 2-column dashboard layout? [closed]
- First plugin, problem with get_pages
- eLearning Module
- How to automatically redirect to custom admin menu after plugin activation?
- Readable titles in mobile
- adding Adsense’s In-Article Ads between images of blog post
- Export postmeta (custom fields)
- Add logo to admin menu in my plugin
- Load CSS files in header of Bones theme?
- How do I use a custom theme for the WP Maintenance Mode plugin?
- Javascript from Easy-Fancybox place into footer
- How to get Facebook comment plugin in blog? [closed]
- value not set in contact form 7 plugin of wordpress [closed]
- How to translate user added content in a plugin
- How to call php file in theme directory from plugin
- uncaught TypeError: Cannot read properties of null (reading ‘classList’) custom plugin
- How do I minify a plugins CSS/JS code?
- Elementor Pro display featured image on section -> style -> image using shortcode
- Error when adding extensions to wordpress version 5.9 with a DIVI install
- Create a pdf from the entries in DB
- I need plugin or method suggestion
- WordPress – send digital product with custom email
- Litespeed brokes my css
- German Market: How can I only show the imprint in the footer of the mail? [closed]
- Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /../plugins/rm-payment.php
- Trying to add a new feature in my wordpress website
- How can I implement radio buttons with icons in Contact form 7?
- Having multiple URL structure for wordpress blog
- SEO Site Title appearing in google search despite not being added
- On button click, redirect users to registration page instead of another page
- Missing files in enqueue actions causes WordPress to reload
- I can’t use WP_Query
- Adding/ Removing actions for plugins
- Why user profile update creates Additional Capabilities
- Add new post using a page inside the website
- Adding list of Indexes in wordpress document
- API calls on plugin activation or init?
- Get page content by ID (from a plugin)
- how to protect wordpress website
- Unfortunately removed myself as plugin committer
- Category archive in menu
- WordPress filter function using query modifications
- Plugin won’t activate, fatal error (widget class not found)
- How can I Customize My WordPress Admin Dashboard into Dark Mode?
- Google analytics not working on WordPress
- Is it possible to recover Deleted users?
- ACF Taxonomy Object term Null [closed]
- Remove on behalf of in wordpress emails?
- Plugin problem. Question is not appearing.
- Embed php code in custom field of a plugin [closed]
- How to make a rest style plugin?
- Sorting/Ordering Poll Plugin?
- Suitable hook when creating, updating and deleting posts programmatically
- how to make yoast seo read text from custom fields in custom post type
- How can I gather forums posted by visitors from different sites in one place? [duplicate]
- Does anyone recognize these table names?
- enable admin approval and email verification in ultimate member plugin
- Gutenberg Blocks and Elementor