Jump to content

Remove block layered selected features from title ?


Recommended Posts

Hello,

 

in the PS 1.6 bootstrap theme, if you use the block layered module, every selected option will be added to the page title displayed above the items. Which completely messes up whatever background image you carefully had selected to look nice with the category text.

 

So, is it possible to make it so that the title displayed on page does not change?

 

I understand from an SEO point of view that it is important to have the meta page title change to avoid possible duplicate content issues, but the title on page should remain unchanged.

 

Any ideas?

 

Best regards,

 

Dan

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...

Hi there,

 

Apparently an official fix is on its way, the forge says.

 

As a "temp" workaround, and since the blocklayer module seems to call the category-name span to update it with the meta title, i have created a new css custom class called "category-name-preserved" in category.css (that has the same properties than category-name), and i have applied it to the category-name span in the category.tpl, like this :

    <span class="category-name-preserved">
        {$category->name|escape:'html':'UTF-8'}
</span>
<!--<span class="category-name">
    {strip}
        {$category->name|escape:'html':'UTF-8'}
        {if isset($categoryNameComplement)}
            {$categoryNameComplement|escape:'html':'UTF-8'}
        {/if}
    {/strip}
</span>-->

Also, the category.css updated :

 

 .content_scene_cat span.category-name-preserved {
    font: 600 42px/51px "Open Sans", sans-serif;
    color: #000;
    margin-bottom: 12px; }
    @media (max-width: 1199px) {
      .content_scene_cat span.category-name-preserved {
        font-size: 25px;
        line-height: 30px; } }

It does the trick for me, hope this help.

Link to comment
Share on other sites

  • 4 weeks later...
×
×
  • Create New...