Guest Posted April 1, 2015 Share Posted April 1, 2015 (edited) So having this: {l s='Receive special offers from our partners!'} suppose we want to make "special offers" bold (strong), how could I achieve this? They tell me it's good for SEO to emphasize important words. Thanks for your time edit: additional info WAMP on windows 8 PS 1.6 (latest version) The idea is like this pseudocode: {l s='Receive <strong>special offers</strong> from our partners!'} Edited April 7, 2015 by Guest (see edit history) Link to comment Share on other sites More sharing options...
Paulito Posted April 1, 2015 Share Posted April 1, 2015 Hello Might be a little bit more helpful if you could give a url, screenshot or PS version etc Paul Link to comment Share on other sites More sharing options...
Guest Posted April 1, 2015 Share Posted April 1, 2015 Hello Might be a little bit more helpful if you could give a url, screenshot or PS version etc Paul PS 1.6 on Windows 8 WAMP. I'd like to do this {l s='Receive <strong>special offers</strong> from our partners!'} somehow rgds Link to comment Share on other sites More sharing options...
Guest Posted April 6, 2015 Share Posted April 6, 2015 I'm going to assume it is not possible? Link to comment Share on other sites More sharing options...
parsifal Posted April 6, 2015 Share Posted April 6, 2015 Have you tried splitting the string in 3 parts and enclosing the middle part in strong tags? Link to comment Share on other sites More sharing options...
Guest Posted April 6, 2015 Share Posted April 6, 2015 Have you tried splitting the string in 3 parts and enclosing the middle part in strong tags? I did already find that solution but others before me have stated that this isn't workable: it's tedious, error-prone, not user-friendly and I agree with them. Buying a module for this would be the next and probably only option which makes me a bit sad. Link to comment Share on other sites More sharing options...
parsifal Posted April 7, 2015 Share Posted April 7, 2015 Have a look at this, then: https://www.prestashop.com/forums/topic/262929-br-inside-smarty-string-ignored/?do=findComment&comment=1313661 Link to comment Share on other sites More sharing options...
Guest Posted April 7, 2015 Share Posted April 7, 2015 Ok thanks. Will buy plugin though, these solutions - as they admit - are not very efficient. Link to comment Share on other sites More sharing options...
parsifal Posted April 7, 2015 Share Posted April 7, 2015 I understand that this solution is not elegant, as in possibly causing problems in translation (i.e. due to syntactical differences between languages where the sentence should be split in different parts). But why "not very efficient"? The speed penalty for using two additional {l} Smarty tags should be negligible... Link to comment Share on other sites More sharing options...
Guest Posted April 7, 2015 Share Posted April 7, 2015 But why "not very efficient"? The speed penalty for using two additional {l} Smarty tags should be negligible... True, I think they mean efficient usage which is what you pointed out. thx for your time Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now