How to NOT import link to other websites during import process

luca

New Member
Hi,
How can I NOT import the link to the other product existing in the product description? (the import system import the other seller's product with related link to other website (Ali...).
I don't want to show the other seller's product but if is impossible I don't want any link to other website absolutely!
 

carlodimaandal

New Member
A quick and dirty way would be to hide the links inside the specific container (NOT the whole page) via CSS. This quickly removes all links BUT some elements will be left on the page which makes the product description look unprofessional. But if you must absolutely remove all links quickly, I guess this method is kinda ok.
 

Ahmednew

New Member
how can i remove that links ? AliExpress links appear in my single-product page, imported with the product. i noticed that before, in the old products it was importing only pictures without the link to AliExpress. How can i remove these links by a CSS code?
i have been searching all around the internet for a code to disable all the links on the single-product page. or to totally delete the pictures that include links. Or by using a code to be added to functions.php files to disble the links.
Can any one help?
 
Last edited:

carlodimaandal

New Member
I am using Davinci and this worked best for me.

.product-content .tab-content a {
padding: 0 10px;
overflow: hidden;
position: absolute;
top: -9999px;
left: -9999px;
}

This will not work on other themes with different classes.

Use with caution as this can hide ALL links in an area.
 

Ahmednew

New Member
Thank you so much. It really worked.
You can try this also

.product-content .tab-content a {
display: none;
}

OR

.product-content .tab-content a {
visibility: hidden;
}

display:none is good because it is not leaving empty space. but it doesn't work with all posts, depends on the way the seller write his post.
visibility:hidden works with all posts but it leave white space for the hidden items.

your code really helped me. good luck :)
 
Last edited:

carlodimaandal

New Member
Yup I tried all those and had varying levels of success. There are a few more ways to hide elements using css. The one I gave me the best results.

No worries. Good luck on your shop.
 

Mar

Moderator
Thank you so much. It really worked.
You can try this also

.product-content .tab-content a {
display: none;
}

OR

.product-content .tab-content a {
visibility: hidden;
}

display:none is good because it is not leaving empty space. but it doesn't work with all posts, depends on the way the seller write his post.
visibility:hidden works with all posts but it leave white space for the hidden items.

your code really helped me. good luck :)
 

Mar

Moderator
Thanks for the code, this one worked very well for me. I appreciate it.

.product-content .tab-content a {
display: none;
}

Good luck
 

Mar

Moderator
I am using Davinci and this worked best for me.

.product-content .tab-content a {
padding: 0 10px;
overflow: hidden;
position: absolute;
top: -9999px;
left: -9999px;
}

This will not work on other themes with different classes.

Use with caution as this can hide ALL links in an area.
 

Mar

Moderator
I am using Davinci theme also but for some reason it did not work. Thanks anyway.
 

Mar

Moderator
The images with links are not visible anymore with the CSS code, but AliExpress is mentioned in the instructions made by the seller mostly for shipping or payments. I'm wondering if there is a way to get rid of this.
 

Mar

Moderator
As a follow up, below is with the items being imported from AliExpress. Is there a way to get rid of this like the CSS code that removed the links?


Instructions.png
 

Ahmednew

New Member
i think there is no way to hide this. because it is an image seller added, same as product images (Like images for bags, shoes, .. etc.). you can not separate this image than product images. I think the only way to remove this is to edit each product and remove unwanted images.
 

shubietah

New Member
Hi ,

is this code will keep products images in description processing /linked from Aliexpress ? as I only download the featured images locally & other images directed to Aliexpress to reduce the load on the server
 

kdb

Active Member
I edit all of my products clean up all the mess, just product image, description and apply SEO so I spend almost 10-20 minutes per product.
 

Durim

New Member
This topic is a bit old but since I keep getting problems with the css code after an update, I thought I might help someone later.

if there is anyone who keeps having problems with removing the aliexpress links after an update, don't use css code anymore, use this code:

add this code in function.php.

Code:
function attachment_image_link_remove_filter($content) {
    $content =
        preg_replace(
            array('{<a[^>]*><img}', '{/></a>}'),
            array('<img', '/>'),
            $content
        );
    return $content;
}
add_filter('the_content', 'attachment_image_link_remove_filter');
 
Top