New Landing How can we help? Themeforest Theme Support Dante Dante: woo 2.2.11 includes swift framework code within the_content

Viewing 15 posts - 1 through 15 (of 16 total)
  • Posted in: Dante
  • #146086
    alemarengo
    Member
    Post count: 695

    Hi guys.
    As in the subject, see screenshot: don’t you see anything strange?
    Swift framework code is shown in product list… I cannot believe it… 🙁
    What do you think about?

    Attachments:
    You must be logged in to view attached files.
    #146400
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Check the Product short description for that product – that’s not something the theme adds in there on it’s own.

    – Ed

    #146469
    alemarengo
    Member
    Post count: 695

    Hi Ed.
    Thanks for your reply.

    Let me clear things here.

    That is NOT short description, as you mentioned.
    That is what should be the_content(), as you can see from attached screenshot.
    Within the_content() I put some swift page builder code that let me get what I need to place after a shop loop or a product description, before Related Products or Up-sells products.
    You can see what I mean by another attached screenshot – see toggles.

    Now, the point is that sunday I updated:
    – woo to 2.2.11
    – dante to its latest release

    Result: in product list page I see that code that I put within the_content textarea, which is NEITHER Short description, NOR Description.
    There wasn’t there before. It’s a little annoying, as you can imagine… 🙂

    I hope you understood what I mean. And help me find a workaround.

    Please, let me know what you think about, many thanks.

    Attachments:
    You must be logged in to view attached files.
    #147397
    alemarengo
    Member
    Post count: 695

    Sorry for the delay Rui.
    The point is that now I don’t have that shortcodes anymore.
    Maybe, there’s some Dante editing that allows me to get rid of it.
    I should discover it yet…

    If you’d like to know them, I’ll share them with you. 🙂

    #147681
    alemarengo
    Member
    Post count: 695

    No, I made a mistake… no customization hides what you see in my screenshot.
    As a matter of fact, I got what is the_content only when I search for a specific product or category within product page.
    What do you think about?
    Would you like credential in order to see what’s happening?

    #147891
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    How do you get any content to appear below the title? Is this your SEO plugin?

    Just to be sure, check this box on that product to ensure there is no unwanted content there – https://www.dropbox.com/s/29p5a9rz9vy1liy/Screenshot%202015-02-06%2016.18.12.png?dl=0

    – Ed

    #161598
    alemarengo
    Member
    Post count: 695

    Hi Ed!
    I came back to this topic since it’s not sorted at all.
    For those products, especially duvets, whose pages’ content is not void as the majority of my woocommerce catalogue, I put some content where one usually writes post content (the_content). What did I put? I put some swift builder code, as you can see in this page.
    This code just appear to be $the_content of $product post_type, not of the $post one and thus it appears as the $excerpt that usually a post has in post list.
    I hope this explain in a simple way what happened. I cannot understand what happened though…

    #161978
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Can you provide us admin access to check the product settings?
    Thanks

    -Rui

    #197757
    alemarengo
    Member
    Post count: 695
    This reply has been marked as private.
    #198268
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    Could you add a screenshot of your issue, I went through your products and do not see any shortcodes outputing in the backend product list: http://www.puntobianco.net/wp-admin/edit.php?post_type=product

    Thanks,
    David.

    #206475
    alemarengo
    Member
    Post count: 695

    Hi guys!
    Sorry for the delay, I’ll reply with the following.
    Since the beginning of using my Dante, more or less a year ago, I got used to tweak it by adding this to wp-content\themes\dante\includes\sf-post-formats.php (maybe we discussed it in one of my previous posts):

    remove $search_item .= '<time>'.$post_date.'</time>'; – in order to hide post date from results search page

    add `$product_description = sf_get_post_meta($postID, ‘sf_product_short_description’, true);
    $psd = wp_trim_words( $product_description , ’25’ );
    `
    change $search_item .= $psd.'</div>';

    This is to say that sf_product_short_description is what you can see in woocommerce product list page (as you can see in attached images).

    Well, how can i hide that sf_product_short_description at least in results search page? I don’t want customers to see it. 🙂

    Attachments:
    You must be logged in to view attached files.
    #206679
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    You can use a WordPress conditional.

    Example:

    If is search would be:
    if( is_search() ) { //do something }

    If is NOT search would be:
    if( !is_search() ) { //do something }

    Or you can hide it with CSS. Any search will have the body class added .search. Knowing this you can hide a div on the search page.

    Example:

    .search .my-div-to-hide {
        display: none;
    }

    Thanks,
    David.

    #206938
    alemarengo
    Member
    Post count: 695

    What kind of result should I get following your suggestion?
    I hope you understood my need: to show search result with a little of product description excerpt. But from a certain release on, it occurs that shortcodes I put within product description will be shown both on backend and as search result.
    Well, firtsyl, I do NOT have to hide any div. Secondly, where should I inject if( is_search() ) { //do something }?

    #207263
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    You would need to change the function search.php template which has it’s contents output by the function sf_get_search_item() this is located in /dante/includes/sf-post-formats.php:.

    You would need to work with a web developer to do this theme modification as it beyond the scope of the already provided support, you can request it here: http://www.swiftideas.com/customization/.

    Thanks,
    David.

    #207938
    alemarengo
    Member
    Post count: 695

    Hi David,
    I think there’s no need of customization.
    No money for that. 🙂
    I discovered that the same shortcode content I added in the_content area has been copied inside product description one.
    I just needed to remove the latter content. 🙂
    Thanks for your support!

Viewing 15 posts - 1 through 15 (of 16 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register