asdqwerty Posted September 16, 2013 Share Posted September 16, 2013 Hi I wonder if there is a way to display the current page's meta title on the page itself. E.g if it says "Clothing - <webshop name>" in the title bar, is there any way for me to get "Clothing" as an <h1> on the page? Link to comment Share on other sites More sharing options...
vekia Posted September 16, 2013 Share Posted September 16, 2013 you can {$meta_title|escape:'htmlall':'UTF-8'} variable there, where you want to display it. it mean that you can use something like: <h1>{$meta_title|escape:'htmlall':'UTF-8'}</h1> Link to comment Share on other sites More sharing options...
asdqwerty Posted September 16, 2013 Author Share Posted September 16, 2013 Cool, thanks Any way I can remove the "- <webshop name>" from it? Link to comment Share on other sites More sharing options...
vekia Posted September 16, 2013 Share Posted September 16, 2013 {assign var=shop_name_to_trim value=" - $shop_name"} <h1>{$meta_title|replace:$shop_name_to_trim:''|escape:'htmlall':'UTF-8'}</h1> 1 Link to comment Share on other sites More sharing options...
asdqwerty Posted September 16, 2013 Author Share Posted September 16, 2013 Works perfectly, thanks! Link to comment Share on other sites More sharing options...
vekia Posted September 16, 2013 Share Posted September 16, 2013 you're welcome glad that i could help you a little in this case im going to mark this topic as [solved] best regards Link to comment Share on other sites More sharing options...
Myron26 Posted October 5, 2013 Share Posted October 5, 2013 (edited) I don’t think there is an option to call the number of replies, I think posts is the only one in the database. NutriBullet Recipes Archives - Nutribullet Recipes Edited November 18, 2014 by Myron26 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 7, 2013 Share Posted October 7, 2013 I don’t think there is an option to call the number of replies, I think posts is the only one in the database. i don't understand, can you shed some light on this? it is related to page title? or what? Link to comment Share on other sites More sharing options...
rtvt Posted February 14, 2015 Share Posted February 14, 2015 {assign var=shop_name_to_trim value=" - $shop_name"} <h1>{$meta_title|replace:$shop_name_to_trim:''|escape:'htmlall':'UTF-8'}</h1> Great. That what I search for. Thank you! 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