• Resolved Geet K

    (@geet1306)


    When i move site from demo to live domain, Products which has photos in the tabs are missing. I am using Avada theme. Tabs are working on few products.

    when i am trying to add tabs again, it is showing unwanted space https://isonem.ie/product/isonem-floor-paint/

    Please help .

    • This topic was modified 5 years, 7 months ago by Geet K.
    • This topic was modified 5 years, 7 months ago by Geet K.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 16 through 30 (of 34 total)
  • Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Try this snippet:

    add_filter( 'yikes_woo_filter_all_product_tabs', 'yikes_woo_hide_tabs_from_non_logged_in_users', 10, 2 );
    
    function yikes_woo_hide_tabs_from_non_logged_in_users( $tabs, $product ) {
    
    	if ( isset( $tabs['datasheet'] ) && ! is_user_logged_in() ) {
    		unset( $tabs['datasheet'] );
    	}
    
    	return $tabs;
    }

    If that doesn’t work, try capitalizing Datasheet. I think it’s looking for lowercase though.

    Let me know.

    Cheers,
    Kevin.

    Great!
    I’m trying it tomorrow as I get on a PC.
    I’ll let you know then ??
    Francesco

    Hi Kevin,
    I tried your snippet and it doesn’t work unfortunately. The tab’s title is Datasheet, so I changed the snippet to match the cases… But with no luck.
    Any ideas?
    Thanks again!
    Francesco

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi Francesco,

    Can you send me a link to one of your products that is using this tab?

    Thank you,
    Kevin.

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    And you’re trying to hide the tab from users who aren’t logged in, right?

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    The snippet is working for me with a tab called “Datsheet.” It’s visible when I’m logged in, and it’s not there when I’m logged out.

    View post on imgur.com

    Hmmm don’t know why it shouldn’t be working with the same snippet…
    I’m having a better look at it tomorrow ??

    However it might be a good extra for a premium version of your plugin, isn’t it?

    Francesco

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Adding a feature to only show tabs to logged in users would be a nice a feature, yeah. We’ve considered adding that. The snippet will work regardless of the premium version of the plugin though.

    Where are you adding the snippet?

    Might be a good idea replacing the tab content with a message “subscribe/register to view contents” instead of hiding it entirely.
    I added the code inside functions.php file in my child theme’s directory. Is it right?

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    That is the correct place to add it. I am not sure why it wasn’t working. You’re sure you logged out when you were viewing the page?

    Yes I’m! I tried from an other computer too ?? can’t get rid of that ??

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi @franzkekko,

    Can you perhaps show me a screenshot of where you added the code? Nothing looks wrong on the front end of your site and the snippet has worked for a lot of other people so I think there must be something else going wrong.

    Let me know if you can send over a screenshot of the code in the functions.php file.

    Although I’m sure you’ve done this, make sure you’ve added the code to the functions.php file of your active theme/child theme.

    Cheers,
    Kevin.

    Hi Kevin!
    I was the other side of the world, I couldn’t reply.

    Anyway, i was hoping coming back at work it would have deserved a surprise…but it doesn’t. Still the same trouble.

    here is a screenshot of the function.php file, of the Astra Child active theme.

    Did you develop meanwhile a pro version with this function?

    Francesco

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi Francesco,

    I am not sure what’s going on. You tried the datasheet version too (lowercase), right?

Viewing 15 replies - 16 through 30 (of 34 total)
  • The topic ‘Tabs are gone while moving site’ is closed to new replies.