Shopex Program Optimization and program alt attribute modification

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Recently to a customer's website to do optimization, using the program is Shopex. It made me a long, simple reason. When the domestic, foreign numerous procedures are high profile away from the road, Shopex decision makers have to maintain the original sesame seed-closed source!

Program source code are encrypted processing, it is not possible to carry out the required two development and optimization modification, let me no pain. After a few days of extensive access to data finally on this shopex made a little change. The following first said that one of the changes, but also more than a friend in the question asked.

Shopex Product picture img Add ALT attribute tag.

With Shopex friends know, Shopex in the product picture img processing is directly with title, and no ALT attribute. Perhaps many friends will say, it is not important, it doesn't matter. Then you are wrong, the success or failure of optimization is your grasp of the details.

So how can I add the alt attribute to the product picture img?

First login FTP, find/plugins/widgets/goods/folder inside Default.html file. Open and find line 23rd code

<{if $setting. goodsimgheight}>height= "<{$setting .goodsimgheight}>" <{/if}><{/if}> src= " <{$goods _data.thumbnail_pic|default: $env .conf.site.default_thumbnail_pic|storager}> "title=" <{$goods _ Data.name}> "></a></div><{/if}>
<{/capture}>

Amended to

<{if $setting. goodsimgheight}>height= "<{$setting .goodsimgheight}>" <{/if}><{/if}> src= " <{$goods _data.thumbnail_pic|default: $env .conf.site.default_thumbnail_pic|storager}> "alt=" <{$goods _ Data.name}> "></a></div><{/if}>
<{/capture}>

If you need to retain the original title attribute, change to the following

<{if $setting. goodsimgheight}>height= "<{$setting .goodsimgheight}>" <{/if}><{/if}> src= " <{$goods _data.thumbnail_pic|default: $env .conf.site.default_thumbnail_pic|storager}> "title=" <{$goods _ Data.name}> "alt=" <{$goods _data.name}> "></a></div><{/if}>
<{/capture}>

This allows you to invoke the Alt attribute at the time the product is displayed.

As for the other simple optimization settings, Title,description,keyword can be in the background of the "marketing"-seo settings inside the configuration. This shopex is a good deal.

Original link: http://www.80yk.com/chengxu-seo/shopex/reprint please indicate the source thank you.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.