URL redirection

I want to config a button so when the user click it a new tab will open and the old tab should be redirect to another URL. How can I make this happen?
Category: Web

Product category display in tabs

Helo sir, I need your help. I want to display product category into tabs. My product category is showing, but my tab content is not display according to tab category. I donn't know what is the problem Here my code: Trending Products Clothing <?php if ('' !== $settings['show_filter'] ): ?> <ul class="nav nav-tabs" id="trendingTab" role="tablist"> <?php $terms = get_terms('product_cat'); foreach($terms as $term ){ ?> <li class="nav-item" role="presentation"> <a class="nav-link active" id="accessories-tab" data-toggle="tab" href="<?php echo $term->slug; ?>" role="tab" aria-controls="accessories" aria-selected="true"><?php echo …
Category: Web

Visual and Text tabs missing from Editor

I have two WordPress servers installed with an identical server and WordPress configurations (same WordPress version, same PHP version, same plugins and same theme). The point is that the Visual and Text tabs do not appear in one and in the other they do. As much as I look, I don't know where the problem is or the difference between them. Any indication that can help me? I leave you the screenshots so that what I explain looks good. We …
Category: Web

Starting with tabbed metabox

I need a tabbed metabox for my plugin. Actually they are 5 metaboxes each one in a tab. I found these scripts: https://speckyboy.com/10-simple-code-snippets-creating-beautiful-tabs/ Which one is best for using in meta boxes? It's better to have only CSS ? JS must be registered ? I want to start testing these scripts but would like advice on where to start. thank you
Category: Web

Enclosing Shortcodes for Tabs

I'm in the process of migrating our site to a new theme. We previously used enclosing shortcodes to have tabs on some of our pages (see two code examples below). The new theme does not have this functionality. Although I have seen a few plugins for self-closing shortcodes, I have not found any that use enclosing shortcodes so we can add the opening shortcode tag(s) and closing shortcode tag(s) to our templates. Does anyone know if such a plugin (or …
Category: Web

How can we make tab menus dynamically. How can we show it in wordpress theme

menu addition in wordpress ok. But I couldn't figure out how to add Tabs Menu in Wordpress. I want to do it without page refresh (nav-tabs class). For example 3 tabs just below the slider in the link. (https://www.deneme.website/)But I want it to be dynamic menu. The relevant codes are as follows: Edit: Thank you for your interest. my English is bad. sorry 1- As you know, the menu in wordpress is made with the newwalker class. require_once (get_template_directory().'/classes/class-wp-bootstrap-navwalker.php'); register_nav_menus(array( …
Topic: tabs Wordpress
Category: Web

user-edit.php profile options on TABS

I´m looking to show all the profile info in the admin area inside tabs. Actually, I see a lot of info of wordpress and other plugins and is too dificult to edit some information that appears on the bottom. Is there a way to show the profile info in tabs? Thanks in advance
Category: Web

ob_get_clean(); doesn't return $value in shortcode?

i using this code: <?php ob_start(); echo '<div class="judul"><h3 style="text-align: center;"><strong>Download <?php echo esc_html( $judul ); ?> Batch Kumpulan Subtitle Indonesia</strong></h3></div>'; echo '<p><div class="deps"><h4>'; echo "<strong>Episode $bepisode</strong></h4>"; echo '</div></p>'; echo '<div class="dfr">'; echo "<strong>$bkualitas</strong><br/>"; echo '</div>'; echo '<div class="dln">'; echo "    <strong>$blink</strong><br/><br/>"; echo '</div>'; echo '<div class="dfr">'; echo "<strong>$bkualitas2</strong><br/>"; echo '</div>'; echo '<div class="dln">'; echo "    <strong>$blink2</strong><br/><br/>"; echo '</div>'; echo '<div class="dfr">'; echo "<strong>$bkualitas3</strong><br/>"; echo '</div>'; echo '<div class="dln">'; echo "    <strong>$blink3</strong><br/><br/>"; echo '</div>'; $out = ob_get_clean(); ?> then using this code in …
Category: Web

Edited one page in my working menu and now all menu buttons don't open unless I right-click and open in new tab

I just recently edited a page on my site and changed the page in my main menu, however now all of my menu buttons don't work unless I right-click and open in a new tab...then the page appears. I have disabled all plug-ins and nothing seems to change. I have also cleared all cache from site and browser, as well as used other browsers. Has anyone else ran into this problem? Uncaught SyntaxError: Unexpected token '<' at eval (<anonymous>) at …
Category: Web

Looping Through Categories of a CPT

I am trying to create tabs using the Foundations framework, outputting posts from a custom post type called testimonial and filtering them through their assigned custom category called filed-under. What am I doing wrong in my loop? What I Have Working Category tabs appear when new categories are created What is Not Working The posts aren't appearing in the tabbed content area How do you get the loop to filter the 'all' category? Link to Demo http://staging-newmummycompanyca.temp312.kinsta.cloud/testimonials/ Code <?php // …
Category: Web

Google Map iframe in a tab issue

I have embedded a map on the third tab on a page. Page here > 'Itinerary' tab If you go straight to the tab while the page is still loading - it loads the map perfectly. However, if you wait until the page has fully loaded and then click on the tab 'Itinerary', the map loads totally zoomed out and not where it should be. I have tried entering all the details like <iframe src="http://ridewithgps.com/routes/1342529/embed" height="500px" width="100%" frameborder="0" http://maps.google.com/maps?ll=43.790716,4.166708&z=8&t=m&hl=en-GB&gl=US&mapclient=apiv3&skstate=action:mps_dialog$apiref:1&output=classic></iframe> but …
Category: Web

Change order of combined product tabs

I found and implemented the following code. I need the Additional Information to display BEFORE the Product Description content. I have been looking through posts for hours with no luck. add_filter( 'woocommerce_product_tabs', function( $tabs ) { unset( $tabs['additional_information'] ); return $tabs; }, 98 ); add_filter( 'woocommerce_product_tabs', function( $tabs ) { $tabs['description']['callback'] = function() { global $product; wc_get_template( 'single-product/tabs/description.php' ); if ( $product && ( $product->has_attributes() || apply_filters( 'wc_product_enable_dimensions_display', $product->has_weight() || $product->has_dimensions() ) ) ) wc_get_template( 'single-product/tabs/additional-information.php' ); } }; return …
Category: Web

removing description tabs - single product page - breaks footer

I would like to only dispaly the gallery & short despcription on the single product page. Using: add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 ); function woo_remove_product_tabs( $tabs ) { unset( $tabs['description'] ); // Remove the description tab unset( $tabs['additional_information'] ); // Remove the additional information tab return $tabs; } The tabs disappear, but the footer does not display right anymore and gets distorted. woocommerce.php: ?php get_header(); ?> <div id="page-wrapper"> <div class="container"> <section class="unique-feature-area-woo"> </section> <?php woocommerce_content(); ?> </div>
Category: Web

Multiple Loops In Tabs Only Displaying First Loop

I've browsed all the other questions that could be related to this and still can't find the answer. My code is only displaying the results of the loop in the first tab, but won't show it in the second tab. Can't figure out why. See code below: <div class="tab-panels"> <div class="panel entry-content active" id="tab_all-lines"> <!-- Full Menu --> <?php $loop = new WP_Query( array( 'post_type' => 'featured_item', 'post_status' => 'publish', 'posts_per_page' => -1, 'orderby' => 'title', 'order' => 'ASC', ) …
Category: Web

Woocommerce - Want to move the product tabs below short description

i've two questions. I would like to move Woocommerce-tabs underneath my short description on the right side. I found this but the accordion is not full-width. remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10 ); add_action( 'woocommerce_single_product_summary', 'woocommerce_output_product_data_tabs', 60 ); I also would like to make the pictures/text sticky as in this website: https://www.kustomdesigns.com.au/?product=mx-jersey my website //morenatural.nl/product/jojoba-olie-biologisch-koudgeperst/ I hope someone could help. Thanks already guys. Cheers, Henk
Category: Web

How to add SVG icon above product tab title

I used the following code to create custom product tabs (woocommerce), and now I was wondering if I can add an SVG icon above the tab title. My code for a custom product tab: add_filter( 'woocommerce_product_tabs', 'misha_custom_tab' ); function misha_custom_tab( $tabs ) { $tabs['misha_custom_tab'] = array( 'title' => 'MyTabTitle', 'callback' => 'misha_custom_tab_content', // the function name, which is on line 15 'priority' => 50, ); return $tabs; } function misha_custom_tab_content( $slug, $tab ) { echo '<h2>' . $tab['title'] . '</h2><p>Tab …
Category: Web

Move WooCommerce product tabs out of the tabs

I want to have the product tabs out of the tabs section and put them one down the other with no need of having the tabs functionality. I can unset the tabs add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 ); function woo_remove_product_tabs( $tabs ) { unset( $tabs['description'] ); unset( $tabs['reviews'] ); unset( $tabs['additional_information'] ); return $tabs; } but I dont know how to reset them in columns layout and not in tabs. Thanks for any help
Category: Web

Toggle between paragraphs using buttons

It's a little hard to explain what I'm trying to add so here's a link to what I'm trying to copy. http://www.connaissance.lk/sri-lanka I want to add this feature to my current wordpress site because if not my page will be way too long.
Topic: tabs Wordpress
Category: Web

Iframes inside bootstrap tab disappear when tab is shown

I am currently struggling with strange iframe behaviour: I have bootstrap tab with three youtube iframes in it. When I go to this tab for the first time, iframes dissappear, but if I click on another tab and go back to tab with iframes, they are shown! I've tried forcing iframe reloading with 'shown.bs.tab' event in js, iframes appeared, reloaded but then disappeard. Here is the code inside tab with videos <div id="videoblog" class="tab-pane fade"> <?php $news_query = new WP_Query(array('post_type'=>'video', …
Category: Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.