furmonter Posted July 23, 2014 Share Posted July 23, 2014 Witam, Chciałbym się dowiedzieć czy jest jakiś sposób aby usunąć zdjęcie kategorii które znajduje się nad produktami danej kategorii? Kiedy nie zostanie wstawione zdjęcie to w wyborze podkategorii brakuje zdjęcia i słabo to wygląda. Proszę o informację czy można to jakoś obejść. Paweł Link to comment Share on other sites More sharing options...
vekia Posted July 23, 2014 Share Posted July 23, 2014 witaj chodzi o miniatury zdjęć podkategorii czy duże zdjęcie główne kategorii? Link to comment Share on other sites More sharing options...
furmonter Posted July 23, 2014 Author Share Posted July 23, 2014 Miniatury podkategorii chciałbym zostawić a usunąć tylko zdjęcie kategorii. Link to comment Share on other sites More sharing options...
wificon Posted July 23, 2014 Share Posted July 23, 2014 (edited) Wyrzucilem z pliku categories.tpl i miniaturki znikly <div class="subcategory-image"> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}" title="{$subcategory.name|escape:'html':'UTF-8'}" class="img"> {if $subcategory.id_image} <img class="replace-2x" src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')|escape:'html':'UTF-8'}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {else} <img class="replace-2x" src="{$img_cat_dir}default-medium_default.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {/if} </a> </div> Edited July 23, 2014 by wificon (see edit history) Link to comment Share on other sites More sharing options...
furmonter Posted July 23, 2014 Author Share Posted July 23, 2014 Właśnie nie chodzi o miniaturki tylko o to zdjęcie kategorii nad produktami. https://imageshack.com/i/p9273f91p Link to comment Share on other sites More sharing options...
wificon Posted July 23, 2014 Share Posted July 23, 2014 (edited) Właśnie nie chodzi o miniaturki tylko o to zdjęcie kategorii nad produktami. https://imageshack.com/i/p9273f91p <div class="content_scene_cat_bg"{if $category->id_image} style="background:url({$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')|escape:'html':'UTF-8'}) 0 top no-repeat; background-size:contain; min-height:{$categorySize.height}px;"{/if}> to jest od zdjecia głównego Nie usuwaj <div class="content_scene_cat_bg" jedynie go domknij ">" Edited July 23, 2014 by wificon (see edit history) Link to comment Share on other sites More sharing options...
furmonter Posted July 23, 2014 Author Share Posted July 23, 2014 A gdzie jest ten plik categories.tpl? Link to comment Share on other sites More sharing options...
wificon Posted July 23, 2014 Share Posted July 23, 2014 A gdzie jest ten plik categories.tpl? /themes/default-bootstrap/category.tpl Link to comment Share on other sites More sharing options...
furmonter Posted July 23, 2014 Author Share Posted July 23, 2014 <div class="content_scene_cat_bg"{if $category->id_image} style="background:url({$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')|escape:'html':'UTF-8'}) 0 top no-repeat; background-size:contain; min-height:{$categorySize.height}px;"{/if}> to jest od zdjecia głównego Nie usuwaj <div class="content_scene_cat_bg" jedynie go domknij ">" To co mam z nim w końcu zrobić? Usunąć czy coś zmienić w tym wierszu? Link to comment Share on other sites More sharing options...
wificon Posted July 23, 2014 Share Posted July 23, 2014 To co mam z nim w końcu zrobić? Usunąć czy coś zmienić w tym wierszu? Usuwasz to: {if $category->id_image} style="background:url({$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')|escape:'html':'UTF-8'}) 0 top no-repeat; background-size:contain; min-height:{$categorySize.height}px;"{/if} Zostaje: <div class="content_scene_cat_bg"> Link to comment Share on other sites More sharing options...
furmonter Posted July 23, 2014 Author Share Posted July 23, 2014 Działa działa! Dzięki wielkie! Link to comment Share on other sites More sharing options...
Recommended Posts