Tag Cloud depending on theme

Ralf Member
edited December 2020 in General support

wondering if it possible to display a specific content on a page (via codeblocks) depending on the theme.
For example something like this:
<?php if (theme==paradigm) { ?><?php printAllTagsAs_zb('cloud', 'taglist', 'abc', false, true, 2.5, 30,null); ?><?php } ?>

Problem is the 'theme==....' part - not sure if such a parameter 'theme' exists.




  • acrylian Administrator, Developer

    You can use this function to get the current theme:

    I personally would not do things like this via codeblocks but rather modify a theme (in fact I never use codeblocks myself). Codeblocks are a workaround and you easily forget what you did in a codeblock or did something at all especially if you have a lot of pages etc.

  • fretzl Administrator, Developer

    if ( getCurrentTheme() == "paradigm" ) {....}

  • Hi Fretzl,

    thanks a lot - that works perfect :-)

Sign In or Register to comment.