prestashop1.5 breadcrumb添加样式

之前在一个论坛里回复过这个问题,最近又有人咨询这个问题。我想想还是写下来分享给做模板的前端攻城师。

prestashop默认版本产品相关页 breadcrumb最后的节点是文本,没有任何html标签包裹。 加上标签后就可以写css样式修饰了。

1. 打开controllers/front/ProductController.php;
2. 查找到 protected function assignCategory() 大约在436行;
3.将代码 修改为;
protected function assignCategory()
{
// Assign category to the template
if ($this->category !== false && Validate::isLoadedObject($this->category))
{
$this->context->smarty->assign(array(
‘path’ => Tools::getPath($this->category->id, ‘<span  “nav_last”>’.$this->product->name.'</span>’, true),
‘category’ => $this->category,
‘subCategories’ => $this->category->getSubCategories($this->context->language->id, true),
‘id_category_current’ => (int)$this->category->id,
‘id_category_parent’ => (int)$this->category->id_parent,
‘return_category_name’ => Tools::safeOutput($this->category->name)
));
}
else
$this->context->smarty->assign(‘path’, Tools::getPath((int)$this->product->id_category_default, ‘<span class=”nav_last”>’.$this->product->name.'</span>’));

$this->context->smarty->assign(‘categories’, Category::getHomeCategories($this->context->language->id));
$this->context->smarty->assign(array(‘HOOK_PRODUCT_FOOTER’ => Hook::exec(‘displayFooterProduct’, array(‘product’ => $this->product, ‘category’ => $this->category))));
}

产品页面breadcrumb 最后一个节点添加span标签

产品页面breadcrumb 最后一个节点添加span标签

 

 

 

prestashop1.5 breadcrumb添加样式》有3,558个想法

  1. activate windows by kms

    An outstanding share! I’ve just forwarded this onto a colleague who was doing a little homework on this. And he in fact ordered me breakfast simply because I stumbled upon it for him… lol. So let me reword this…. Thanks for the meal!! But yeah, thanks for spending some time to talk about this topic here on your blog.|

    回复
  2. Lowell Sloma

    Greetings! I’ve been following your blog for some time now and finally got the bravery to go ahead and give you a shout out from New Caney Texas! Just wanted to mention keep up the great work!|

    回复
  3. Shanon Dumdei

    I’ve been browsing online more than 2 hours today, yet I never found any interesting article like yours. It’s pretty worth enough for me. In my view, if all website owners and bloggers made good content as you did, the internet will be a lot more useful than ever before.|

    回复
  4. Joeveige

    [url=https://chloroquineactive.com/]chloroquine for coronavirus[/url] [url=https://ivermectinoverthecounter.com/]ivermectin 200mg[/url] [url=https://oralkamagra.com/]kamagra oral jelly women[/url] [url=https://cafergotergotamine.com/]cafergot internet pharmacy[/url] [url=https://fluoxetinesri.com/]prozac where to buy[/url]

    回复
  5. Tod Hrcka

    Hey there would you mind letting me know which webhost you’re working with? I’ve loaded your blog in 3 different internet browsers and I must say this blog loads a lot quicker then most. Can you suggest a good hosting provider at a fair price? Many thanks, I appreciate it!|

    回复
  6. Jackveige

    [url=https://levitrahop.com/]generic vardenafil canadian pharmacy[/url] [url=https://cafergotergotamine.com/]where can i where to buy cafergot for migraines[/url] [url=https://tadalafilgencialis.com/]cialis comparison[/url] [url=https://ivermectinoverthecounter.com/]stromectol ebay[/url] [url=https://optadalafil.com/]otc cialis 2018[/url] [url=https://kamagrabp.com/]kamagra oral jelly in melbourne[/url]

    回复
  7. Jasonveige

    [url=http://tadalafilgencialis.com/]cilais[/url] [url=http://fluoxetinepro.com/]fluoxetine uk online[/url] [url=http://sildalised.com/]sildalis canada[/url] [url=http://fluoxetinesri.com/]fluoxetine 10mg coupon[/url] [url=http://tadaciptab.com/]tadacip for sale uk[/url] [url=http://antabusexr.com/]buy antabuse online safely[/url] [url=http://chloroquineactive.com/]chloroquine otc uk[/url] [url=http://oklevitra.com/]vardenafil 5mg[/url] [url=http://ivermectinoverthecounter.com/]ivermectin buy[/url] [url=http://bluepillsildenafil.com/]viagra prescription uk[/url]

    回复
  8. Jimveige

    [url=https://cialispil.com/]where can i buy cialis without a prescription[/url] [url=https://viagrampt.online/]generic viagra for sale uk[/url] [url=https://prednisonemed.online/]prednisone 5 tablet[/url]

    回复
  9. https://www.megatakip.com/

    I have been exploring for a little for any high-quality articles or weblog posts on this
    sort of house . Exploring in Yahoo I eventually stumbled upon this web site.
    Studying this info So i’m glad to exhibit that I have a very just right
    uncanny feeling I discovered just what I needed. I most
    no doubt will make certain to do not forget this site and give it a glance on a relentless
    basis.

    回复
  10. Jackveige

    [url=https://kamagragn.com/]kamagra jelly price thailand[/url] [url=https://viagrampt.online/]sildenafil 2[/url] [url=https://cipromeds.com/]ciprofloxacin 250mg price[/url] [url=https://tadalafilpak.com/]generic cialis drugs[/url] [url=https://mdviagra.com/]how much is generic sildenafil[/url] [url=https://pillcialis.com/]tadalafil 40 mg price[/url] [url=https://viagrachemi.com/]can i buy sildenafil citrate[/url]

    回复
  11. Elliott Deglopper

    We’re a group of volunteers and starting a new scheme in our community. Your web site offered us with valuable information to work on. You’ve done an impressive job and our whole community will be thankful to you.|

    回复