Found a solution here.
Just add this js code:
var makeTabs = function(selector) {
$( selector )
.find( "ul a" ).each( function() {
var href = $( this ).attr( "href" ),
newHref = window.location.protocol + '//' + window.location.hostname +
window.location.pathname + href;
if ( href.indexOf( "#" ) == 0 ) {
$( this ).attr( "href", newHref );
}
})
$( selector ).tabs();
};
makeTabs( "#tabs" );
Related Posts:
- enqueue script on custom post type archive page
- How to link external JavaScript files?
- wp_enqueue_script JS code runs too late (after user begins interacting)
- Bootstrap slider not working
- WordPress core jquery version file not loaded?
- Is there a flowchart for WordPress loading sequence?
- How do register_sidebar() and get_sidebar() work together?
- Custom maintenance page
- How to customize the default HTML for WordPress Attachments
- Is it possible to change the attributes of a registered style or script before it fires?
- how to change “published date” format on edit.php (Posts page)?
- How to change submit button value in comment from “Post Comment” to “Send”
- Querying multiple WordPress custom fields with AND qualifier
- WordPress custom post types breaks permalink on theme reinstall
- Creating a searchable A-Z listing of hundreds of companies/services
- Show attribute description when filtering by that attribute
- Custom protected password page with ACF
- Create a Custom menu item fetched by Product Categories and Sub Categories
- Customize in category page
- Custom Dashboard Home Screen Options
- Multi-Site Plugin Activated (Not Network-Activated), What Happens?
- How to get WordPress to accept the tag in articles (or other alternatives)
- Add custom column to Users admin panel with Types user custom fields?
- How do I change the default admin color scheme in MP6
- woocommerce Add custom field set like billing fields
- How can a single line in a blog post take down my server?
- Adding action to save_post, post needs to be saved twice for function to work
- Calling a php file from a javascript file in wordpress
- Adding a Table to the wordpress database
- how can I change the background color of all posts on my server?
- 1 bit audio player
- Outputting posts from post id´s in variable
- Auto redirect after session expire, but only for one user
- Turn off redirect to canonical domain (or host website on any hostname)
- Auto login after wordpress installation
- Custom title, Bones theme
- How to get pages id in array in get_pages?
- Access post meta in future_to_publish function
- Javascript Solution Remove Specific Tag but leave the rest in a specific DIV
- How to create a completely private wordpress with multiple membership levels
- Why do posts disappear from admin after upgrading from WP 2.7.1 to 3.0.1?
- woocommerce_checkout_fields modifying existing billing_phone label created new field
- How to change the category url jusy show /category/%category_id% in wordpress?
- custom meta box for page default template
- How can I display a PHP foreach loop’s answers by AJAX
- Child Theme with multiple css files
- How to host 2 subdomains as lookalike destinations under one master domain?
- “An automated WordPress update has failed to complete – please attempt the update again now”– But there is no .maintenance file
- How do I redirect a post url to a custom url?
- How could I verify whole WP directory before/after working with a freelancer? [closed]
- How to customize
- Why the css in twenteenfourteen-child theme take no effect?
- Modify files without losing customization after updates
- Determine if action was executed in functions
- Extending core class in plugin
- Is it possible to make wordpress LMS
- Saving contact form 7 data into custom Table
- add custom content to appearance/widgets screen
- css media query question [closed]
- How to create a page /1 using ?
- Hiding Short Description in Shop Page, WooCommerce
- theme customizer – can a single option pass multiple values?
- Separate header for static home page and posts page
- Media Upload not working after hiding some elements from functions.php
- Pagination with custom field
- Is it possible to rename a customizer control heading?
- How to add WordPress JS Script Links
- Customizing the gallery of the post correctly
- Will WordPress updates remove Gutenberg Additional Classes?
- WP_Query – sort the results by meta value custom attribute wocoomerce
- Multiple header style under meta box
- why won’t my custom css load with the enqueue method or any other method?
- Show products per page drop down
- How can I create a Custom Page? (not a page template!!)
- Adding a drop-down (select tag) option under Menu Settings in WordPress Admin
- Client viewing before deployment
- How to have different background image based on post category
- Change meta-box title- “LearnDash Quiz Settings” to “Quiz Settings”
- Run a welcome tour after multisite creation?
- How to compare number with id of post in certain category
- Custom stylesheet not loading
- Custom Admin Section
- Need to over ride a !important from the index file
- how to hard link to the posts page?
- issue with saving custom metaboxes fields
- Error in establishing a database connection in wordpress?
- DOM reference to TinyMCE editor element (button)
- Header image doesn’t show up on page
- How to get name and email value from a custom form and add it to campaign monitor subscriber list?
- Create a google friendly header with text and logo
- Disallow “contributors” to edit their own posts once they’ve been set to “Pending Review”
- Custom Link In WordPress Media “Attachment Details” Upload Screen
- “Static” pages within a theme
- Assign classes to Custom fields
- Custom WordPress SQL Query 4 posts per custom taxonomy
- Prevent posts from being published if the ‘Uncategorized’-category or no category is selected
- Set custom banner image size with wp_customize
- User Query Multiple Orderby Clause
- How to display product variations on same row
- Create a page for each database table entries