page_theme.php not outputting

Hi all,

I'm trying to get the autonav block to list out a couple of custom classes in the advanced options in the Design and Custom Template tool, but they're not turning up in the list.

Here's my page_theme.php file (it's a custom theme of my own design):

namespace Application\Theme\Portfolio;
use Concrete\Core\Page\Theme\Theme;
class PageTheme extends Theme
   public function getThemeBlockClasses()
        return array(
            'autonav' => array(
                'nav navbar-nav navbar-dark',
                'nav navbar-nav navbar-light'

Any ideas why they're not turning up?


View Replies: View Best Answer
MrKDilkington replied on at Permalink Best Answer Reply
Hi Continuity13,

I have an idea of why your custom block classes aren't working.

Using the Elemental theme as an example:
public function getThemeBlockClasses()
    return array(
        'feature' => array('feature-home-page'),
        'page_list' => array(
        'next_previous' => array('block-sidebar-wrapped'),
        'share_this_page' => array('block-sidebar-wrapped'),
        'content' => array(

All of the custom classes in the arrays are single classes. In your arrays, you are combining three classes. I think it only works using a single class.
Continuity13 replied on at Permalink Reply
Hey MrK,

Thanks for your response.

Actually, the multiple classes weren't the problem; it was me not following one particular instruction. Which is to say, de-activating/uninstalling my theme, then re-installing/re-activating it. Once i did that, it worked a treat!

Thanks again though, I appreciate it.