Results 1 to 2 of 2

Thread: Change Class="mod_*"

  1. #1
    New user
    Join Date
    07-15-09.
    Location
    Heeswijk-Dinther, The Netherlands
    Posts
    13

    Default Change Class="mod_*"

    Hey Guys,

    We are trying to make our typolight websites faster to load. We had great help with the Yslow firefox extension. We are now trying to "Minify" our HTML. We already installed Minify, which is a great tool to make your websites faster.
    We also would like to get rid of unnecessary div attributes in our html output. This is easy with the templates, but sometimes you just want to change the classname. For instance:
    Code:
    <div class="mod_newslist">
    to:
    Code:
    <div class="newslist">
    or something like that.

    So our question is: how can we delete or change those unnecessary classnames?

  2. #2
    User FloB's Avatar
    Join Date
    06-21-09.
    Posts
    157

    Default Re: Change Class="mod_*"

    AFAIK the module CSS class names are generated by the module class. Thus you can use str_replace() / preg_replace() on the var that contains the CSS classes to replace any "mod_" by "" (empty).

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •