Jump to content

attaboy_jhb

Member
  • Posts

    10
  • Joined

  • Last visited

Everything posted by attaboy_jhb

  1. Thank you for that. However, this is getting quite advanced just to add alt tags to images. I am not lazy but I just don't want to have to understand the workings of cubecart & smarty to add alt image tags to product images. I understand how a site interacts with a database but why can you not change all these alt tags in the admin side?? Why must you source files and cut up lines of "smarty" code. In the admin side there is a SEO page under each product. Why is there no space for alt tags there?
  2. <img src="{if $product.small}{$product.small}{else}{$product.image}{/if}" alt="{$product.seo_meta_keywords}" /> How can I just put in a variable if it is not defined?? $product.seo_meta_keywords is a variable or did you put in the $ by accident?
  3. I found it thank you, however, what about the images for the slider in a DIV called flexslider?? Where are those "alt" tags input? the HTML in the area you mentioned only begins after the slider. Also, how do I change the alt tags on the product images from the shop? for SEO I need to change all of those cheers!
  4. Yes, when I inspect the image with firebug I can see that alt HTML code and I need to change it for all the images on the site. I am a very novice PHP programmer so was hoping to be able to do it via admin for SEO purposes the site is www.leangenie.co.za
  5. but the alt tags in the OP are alt="Supplement your income by selling our range of fantastic products to friends and family! and that does not equal to the product name. something doesn't add up.... or am I missing something?
  6. thanks again for all your help Ok so I checked and there is no HTML on that page with ALT tags. Please code below: {$span = floor(12 / (int)$columns)} {$firstInRow = (($iteration - 1) % $columns == 0) ? "firstInRow" : ""} {$lastInRow = ($iteration % $columns == 0) ? "lastInRow" : ""} {if $firstInRow}<div class="products-row">{/if} <div id="product-{$product.product_id}" class="span{$span} {$firstInRow} {$lastInRow} product"> <div class="wrapper"> <form action="{$VAL_SELF}" method="post" enctype="application/x-www-form-urlencoded" class="ajax"> <input type="hidden" name="add[{$product.product_id}][quantity]" value="1" class="quantity" /> <div class="product-image"> {$skinData = $GLOBALS['gui']->getSkinData()} {$height = $skinData.images.small.maximum} <a href="{$product.url}" title="{$product.name}" {if $height}style="height: {$height}px; line-height: {$height}px;"{/if}> <img src="{if $product.small}{$product.small}{else}{$product.image}{/if}" alt="{$product.name}" /> </a> </div><!-- /.product-image --> <div class="product-details"> <div class="product-title"> <a href="{$product.url}" title="{$product.name}">{$product.name}</a> </div> {if strlen({$product.description_short})} <div class="product-description"> {strip_tags($product.description_short)} </div> {/if} {if $product.review_score} <div class="product-rating"> {for $i = 1; $i <= 5; $i++} {if $product.review_score >= $i || ($product.review_score > ($i - 1) && $product.review_score < $i)} <img src="{$STORE_URL}/skins/{$SKIN_FOLDER}/img/star-on.png" alt="" /> {else} <img src="{$STORE_URL}/skins/{$SKIN_FOLDER}/img/star-off.png" alt="" /> {/if} {/for} </div> {/if} {if !$CATALOGUE_MODE} <div class="product-price"> {if $product.ctrl_sale}{$product.sale_price}{else}{$product.price}{/if} </div> {/if} </div><!-- /.product-details --> {if !$CATALOGUE_MODE} <div class="product-actions"> {if ($product.ctrl_stock || $product.ctrl_purchase) && !$CATALOGUE_MODE} <a href='#submit' class="btn btn-primary" title="{$LANG.catalogue.add_to_basket}"> <i class="icon-shopping-cart icon-white"></i> {$LANG.catalogue.add_to_basket} </a> {elseif !$CATALOGUE_MODE && $LANG.catalogue.out_of_stock_short} <a href="{$product.url}" class="btn btn-danger"> <i class="icon-shopping-cart icon-white"></i> {$LANG.catalogue.out_of_stock_short} </a> {/if} </div> {/if} {if $product.ctrl_sale} {strip} <a href="{$product.url}" class="sale-badge"> <span class="saving">{$LANG.catalogue.saving}</span> <span class="value">{round(100*($product.price_unformatted-$product.sale_price_unformatted) / $product.price_unformatted)}</span> <span class="percentage">%</span> </a> {/strip} {/if} </form> </div><!-- /.wrapper --> </div><!-- /.product --> {if $lastInRow}</div>{/if}
  7. Thanks for that explanation. The skin is a custom skin called "vector" and I am wanting to change the "alt" tags of the home page images as well as images located on the home page slider. Is that enough info for you to help me out? PS: Not sure if this is of any use but I located the file content.homepage.php in the "vector" folder on the server and it only contains the following code: <!-- Latest Products Listings --> {if isset($fusion) && is_object($fusion) && $LATEST_PRODUCTS} <div class="row-fluid"> <div class="products latest-products" data-columns="{$fusion->get('latest_product_listings_grid_columns')}"> {foreach from=$LATEST_PRODUCTS item=product} {include iteration="{$product@iteration}" columns="{$fusion->get('latest_products_per_row')}" file="skins/{$SKIN_FOLDER}/templates/element.product.php"} {/foreach} </div> </div> {/if} Appreciate further feedback about this
  8. When I use firebug to inspect an image I get this HTML code for it in one example: <img style="width: 250px; height: 118px; margin: 5px 0px; float: right;" src="images/source/category_buttons/leangenie_need_extra_cash.jpg" alt="Supplement your income by selling our range of fantastic products to friends and family!"> I need to change the "alt" tag. Is this possible?
  9. I am a beginner and have read numerous threads for adding alt tags to images in CC. Some say you have to add them when you upload the images but I tried that and it doesnt work. When uploading images there is only a "browse" button and nothing else on the page. I need to update all of the image alt tags for all the existing images already loaded into CC for SEO purposes so if there is a way to do it without having to upload each one again, even better. Where can I add/edit this info? THanks in advance for your help
×
×
  • Create New...