test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • charmedworks Friend
    #166829

    I need to set up a CSS class suffix by section.

    I’m using this code:
    <div class=”section-<?php echo $this->item->sectionid; ?>”> … content here…</div>

    In the blocks/mainmenu.php file.

    However it is returning only:
    <div class=”section-“> … content here…</div>

    Is there a reason why this is not working? Is there a way to generate the sectionid as a CSS class suffix that will work? Please advise.

    chavan Friend
    #403561

    Hi charmedworks

    Was file blocks/mainmenu.php create by you? I didn’t find this find in blocks folder.

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  chavan 13 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum