Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Questions
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 8th, 2012, 08:24 AM
sasquach42 sasquach42 is offline
 
Join Date: Nov 2012
Posts: 10
Default Formatting in product description and specification fields

I'd like to include html markup in my category description, product description and specification fields. Is there any way to do this? For a category description, it currently just comes out as plain text.

Thanks,

Store ID: 40555
Website URL: Top secret- pm me if needed.
URL to page in question:
  #2  
Old December 8th, 2012, 10:25 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

Welcome to the forums!

Yes, you can add HTML to your category descriptions. It will be rendered on your site as such. Don't forget, after you add your category descriptions, you must click the [Update Products and Settings] button, not the [Update Settings Only] button to update your store.

One thing to note about using HTML in your category descriptions, you should change your Category Page view <head> elements so that HTML does not appear in your meta tags. So instead of having:
HTML Code:
<meta name="description" content="[category.description]" />
You would need:
HTML Code:
<meta name="description" content="<?php echo substr(strip_tags($category->description), 0, 160); ?>" />
These changes can be made here: The Factory > Your Store > VIEWS > CATEGORY PAGE > Default > View menu > View <head> Elements

As for the product description, by default it is set to strip out HTML. If you've added HTML to your product descriptions (or the rare case where the merchant has provided HTML in their descriptions), you can enable it by adding an attribute to your [product.description] tag.

Change this:
HTML Code:
[product.description]
To this:
HTML Code:
[product.description html='yes']
Only use this in views where you want HTML to be rendered. I would only recommend this setting in this view: The Factory > Your Store > VIEWS > PRODUCT DETAIL > Default > Product detail module.

Eric
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to have a simple search query all fields (product name, description, merchants, e fsuggest Questions 2 April 29th, 2012 08:29 PM
PersonalizationMall's description formatting off cashnow Problems 3 September 24th, 2011 05:44 PM
html formatting of product description blnklaus Problems 2 August 20th, 2011 08:33 AM


All times are GMT -5. The time now is 06:17 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.