Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Dante: woo 2.2.11 includes swift framework code within the_content
New Landing › How can we help? › Themeforest Theme Support › Dante › Dante: woo 2.2.11 includes swift framework code within the_content
- This topic has 15 replies, 4 voices, and was last updated 9 years by David Martin – Support.
-
Posted in: Dante
-
February 1, 2015 at 8:51 pm #146086
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.February 2, 2015 at 3:33 pm #146400Check the Product short description for that product – that’s not something the theme adds in there on it’s own.
– Ed
February 2, 2015 at 5:39 pm #146469Hi 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 releaseResult: 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.February 5, 2015 at 6:35 am #147397Sorry 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. 🙂
February 5, 2015 at 7:46 pm #147681No, 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?February 6, 2015 at 4:18 pm #147891How 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
March 28, 2015 at 3:34 pm #161598Hi 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…March 30, 2015 at 6:01 pm #161978Hi,
Can you provide us admin access to check the product settings?
Thanks-Rui
July 26, 2015 at 4:12 pm #197757This reply has been marked as private.July 27, 2015 at 7:07 pm #198268Hi,
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.August 23, 2015 at 7:05 am #206475Hi 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 pageadd `$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.August 24, 2015 at 11:14 am #206679Hi,
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.August 24, 2015 at 8:17 pm #206938What 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 injectif( is_search() ) { //do something }
?August 25, 2015 at 1:50 pm #207263Hi,
You would need to change the function
search.php
template which has it’s contents output by the functionsf_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.August 27, 2015 at 6:18 am #207938Hi David,
I think there’s no need of customization.
No money for that. 🙂
I discovered that the same shortcode content I added inthe_content
area has been copied inside product description one.
I just needed to remove the latter content. 🙂
Thanks for your support! -
Posted in: Dante
You must be logged in and have valid license to reply to this topic.