• Resolved Guido

    (@guido07111975)


    Hi,

    I’m a theme developer and have made some (logical) changes in CSS classes, example:

    Old:

    
    <div class="post-title">
    

    New:

    
    <div class="entry-title">
    

    To support the old class I can do this:

    
    <div class="post-title entry-title">
    

    But I’m wondering if it’s possible to do this via a function in my functions file? Because I don’t want all kinds of “old” CSS classes floating around in my theme files.

    Guido

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Guido

    (@guido07111975)

    Update:

    I think I can use jquery addclass but I still have to find out how to add an extra class to a certain div.

    Guido

    Thread Starter Guido

    (@guido07111975)

    Hi again,

    Closing this topic because I also have ID’s which has been changed and it’s not wise to add multiple ID’s to the same element.

    Guido

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Support backwards compatibility for CSS class’ is closed to new replies.