|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Adi Smarty n00b
Joined: 30 Jul 2020 Posts: 4
|
Posted: Thu Jul 30, 2020 9:17 am Post subject: Delete some elements from specific pages. |
|
|
Hi,
On pages where body has classes like: 'shop_news_list' and 'shop_news' I am trying to delete elements such as <footer> tag, menu row etc. The way I want to do this is by putting those elements in between if statement. For example:
Code: |
{if !($body_class == ''shop_news_list' || $body_class == 'shop_news')}
<footer class="footer row">
...
</footer>
{/if}
|
However it doesn't work or makes an element disappear from every page. Is there any other way I can do this or maybe you know how can I check if body has particular class. [/code] |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
|
Back to top |
|
Adi Smarty n00b
Joined: 30 Jul 2020 Posts: 4
|
Posted: Thu Jul 30, 2020 12:59 pm Post subject: |
|
|
Unfortunately I can not create new files to use them as new templates. |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Thu Jul 30, 2020 9:50 pm Post subject: |
|
|
Then this is not a Smarty problem. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|