Alright figured it out.
As Jacob pointed out, it should go into the script that makes data-name show as a tooltip.
So I added the following:
if (jQuery(window).width() < 480) {
jQuery(this).removeAttr("href");
}
My final code:
jQuery(document).on({
mouseenter: function(e) {
if (jQuery(window).width() < 480) {
jQuery(this).removeAttr("href");
}
setTimeoutConst = setTimeout(function() {
tooltip.open(e);
}, 200);
},
mouseleave: function(e) {
clearTimeout(setTimeoutConst);
tooltip.close(e);
}
}, 'a[data-name]');
Related Posts:
- Remove Actions/Filters added via Anonymous Functions
- Is it possible to rename a post format?
- How to paginate the get_users function?
- opening links in new tab using – add_filter( ‘the_content’, ‘make_clickable’);
- How to add classes to images based on their categories?
- Child theme – overriding add_image_size by a child theme [duplicate]
- Compare post levels and user levels wishlist member
- Generating Responsive Background Image Sizes in PHP
- Change ul class=”children” for wp_list_pages?
- Target a certain page within wordpress backend (admin) i.e. Pages > About
- Set default options for inserting media
- Session is not starting
- the_post_thumbnail fallback using hooks
- Hide WYSIWYG editor on certain templates
- Polylang: pll_e() & pll__() on functions.php, doesn’t work
- Disable shortlinks like ?p=1234 to prevent scraping
- Redirect a list of URLs to another URL, using functions.php
- WP_Remote_Get Not working
- Debugging with functions.php
- Getting first Image from post
- Inserting a functions output after the content
- Combine two different filter callback functions
- Don’t delete a page if it holds users
- How to limit character length in BuddyPress function output [closed]
- Ordering posts by publish date not working?
- Is possible add icon in title posts only in specific tag?
- Wp_schedule_event functions.php
- How to install Segment on WordPress without a plugin
- How to search using ajax for exact phrase or words in an input field?
- Can’t generate thumbnail images
- Multisite 404 on pages – rewrite error breaks database
- Dashboard widget custom positioning?
- Display tags that only appear in one category
- Need help “sanitizing” a custom function that pulls category slug into body class
- How to get data from an array using get_user_meta()
- Space Not Being Generated in HTML Output?
- Auto Generated HTML source code formatting
- Do not show on homepage functions.php code needed
- Get Comma Seperated Taxonomy Linked Terms and Last Child Separated By “&” Instead Of Comma
- How to remove a specific word at the beginning of the content and add it to the end of the content
- $_Get and &_REQUEST Index Undefined on Functions.php
- Exclude Category ID in function
- get_terms and meta_value results blank
- get_template_directory_uri() links to child theme not parent
- Functions Filter Question [closed]
- get_template_directory() – references parent theme directory
- Function that prevents users from uploading photos more photos
- Dequeue scripts in IE7 only using functions.php
- Why I can’t load my JavaScripts using an hook inside my functions.php file?
- Featured Image keeps cropping
- Function Suddenly Stopped Working
- Prevent creating multiple image resizes in twentytwelve template
- Shortcode of a function
- Conditional function for excluding first image from content, not working
- How to add a shortcode to call a function
- How can I call a PHP function inside a hardcoded shortcode?
- WordPress comment_form() does not display actual comments
- Message notification for user
- Create a CUstom Archive by Year, but just for a Single Category
- Is it possible to create a shortcode to link to a specific post/page where the tag is just an attribute?
- Malfunction via Safari [closed]
- Is it possible to limit number of files a non-admin user can upload via the WordPress media library?
- How can I connect to a second database and still be able to use wp functions like get_post_types()?
- Display Script in Header When URL Variable Present
- Render metabox gallery in frontend
- Javascript file loads only on homepage, not on other pages (404 not found error)
- how to check if an element in an html file exists in another html file? [closed]
- What is the earliest Hook a Script can use?
- Trying to change widgets h-tags
- I want to display the sku in the product pages of my EDD website
- Getting value of variable from functions.php and debugging it
- Why does echo on functions.php not yield result in source code?
- Child theme, how to cut the functions.php file into several classes?
- use add_action in a shortcode (gravity form – WordPress)
- Setting Up Child Theme To Take Priority
- I want to customize the_posts_navigation function by replacing prev and next with images
- wp_footer hook causing text to show on bottom of page
- Shortcode displaying outside the div [duplicate]
- Child Theme not loading multiple stylesheets
- Show number of sold products but be first for less than 2
- How to retrieve image IDs from shortcode content?
- Class::$template_dir_path=get_template_directory();
- admin-ajax.php & my wp-admin folder url showing in header
- Post date on Custom field
- Fatal error: Call to undefined function add_action() – an untouched problem
- Author info does not show up when author has no posts
- How to wp_enqueue_script with html?
- Is it possible to change parameters of Parent theme function in the Child theme?
- Error function main() is a non-object to construct my Ajax.php
- Unregistering custom tinymce plugin?
- Combining wp_current_user() and a variable
- Init hook for header send
- java script error Uncaught SyntaxError: Unexpected token ILLEGAL
- Gravity Forms After Submission – GFFormsModel::update_lead_field_value?
- site_url is not honoring scheme
- Should I use `get_stylesheet_uri()` or `get_template_directory_uri()` when calling my CSS Stylesheet?
- new to javascript – using in instead of functions.php, not loading correctly
- Remove Disqus JavaScript from homepage
- Missing argument 2
- Is storing in a variable the result of a fonction a most powerful way to code an if structures in WordPress?