Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Hide Category Description Rate Topic   - - - - -

 

Posted 30 January 2020 - 07:26 PM #1

Is there a way to hide the category description just on mobile devices..?  and not affect SEO..?

 

Thanks in advance...


Elkhorn Graphics LLC
Cs-Cart 4.11.2


 
  • soft-solid
  • Junior Member
  • Authorized Reseller
  • Join Date: 19-Apr 10
  • 1015 posts

Posted 30 January 2020 - 09:09 PM #2

Hello

 

You can override hook 

categories:view_description

and maybe use library Mobile_Detect for hide or show descripction.

 

Best regards

Robert.


Team of SoftSolid
cs-cart.pl, marketplace

We specialize in creating the highest quality addons, safe, useful and flexible


 
  • johnbol1
  • Never Re
  • Members
  • Join Date: 23-Feb 10
  • 4716 posts

Posted 30 January 2020 - 09:31 PM #3

It will affect seo in some way as there wont be as much content.

 

Google are also increasingly looking at websites that use hidden or none visible text, like scrollers etc, and examining it for ranking points.


Custom printed hi visibility clothing sale the UK's online hivis safety shop
v4.5.2


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20055 posts

Posted 31 January 2020 - 05:37 AM #4

Override the mentioned hook and wrap description with the following code

<div class="hidden-phone">
    ....
</div>

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 

Posted 31 January 2020 - 06:59 PM #5

 

Override the mentioned hook and wrap description with the following code

<div class="hidden-phone">
    ....
</div>

 

This works great..   Do you think there will be any negative impacts on SEO..??
 


Elkhorn Graphics LLC
Cs-Cart 4.11.2


 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11454 posts

Posted 31 January 2020 - 08:18 PM #6

Of course there will.  See Johnbol1's comment above.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20055 posts

Posted 03 February 2020 - 06:29 AM #7

This works great..   Do you think there will be any negative impacts on SEO..??
 

 

Please check official answer here

 

https://support.goog...wer/66353?hl=en


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 

Posted 03 February 2020 - 08:06 PM #8

Since this seems to be the wrong way. Is there a way to move the category description to the bottom of the page..?  Thanks  You guys are awesome...


Elkhorn Graphics LLC
Cs-Cart 4.11.2


 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11454 posts

Posted 03 February 2020 - 09:59 PM #9

I believe that if you condition the display of category description to show on all but mobile devices then you won't get nailed for trying to spoof them by hiding the data.  However, when your site is scanned it's going to have different seo rankings for desktop and mobile.  I have no idea if (or how much) Big-G will penalize you for that.  Hence you can do #2  and #5 above with it conditioned on the device being a mobile device.  Not sure if there's a built-in function that will tell you if the device is a mobile device.  You might have to load a separate 3rd party library.

 

So the real question is "is all this worth it"?  If your descriptions are too long, then maybe simply shorten them.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20055 posts

Posted 04 February 2020 - 06:51 AM #10

Since this seems to be the wrong way. Is there a way to move the category description to the bottom of the page..?  Thanks  You guys are awesome...

 

design/themes/responsive/templates/views/categories/view.tpl

 

Use categories::view hook in this file to move the following code

 

{if $category_data.description || $runtime.customization_mode.live_editor}
    <div class="ty-wysiwyg-content ty-mb-s" {live_edit name="category:description:{$category_data.category_id}"}>{$category_data.description nofilter}</div>
{/if}
 
before this line
 
<!--category_products_{$block.block_id}--></div>

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)