Support » Plugin: Zeno Font Resizer » Need a way to target multiple CSS tags

  • trparky

    (@trparky)


    I need a way to target multiple CSS targets. My template has two CSS classes that have content in them, I need to target both.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Marcel Pol

    (@mpol)

    Hi,
    In that case this might not be the best plugin for you.

    This plugin expects content to have a font-size in rem or em. That way it is flexible and the font-size can just be changed for the html or body element.

    If you do know of another plugin that does this, let it know here so other people know what to use.

    Thread Starter trparky

    (@trparky)

    No, you misunderstand me. I need to be able to target say… div.content and div.content-summary. Right now there’s no way I can tell this plugin to target both, only one.

    Plugin Author Marcel Pol

    (@mpol)

    Hi,
    I think I did understand it 🙂 This plugin really only targets 1 element. I have no intention to rewrite that part. If I would it would maybe need to target every element, not just 2.

    So I still think this is probably not the right plugin for you.

    Thread Starter trparky

    (@trparky)

    I found a workaround to my issue. I created a child-theme with modified files to include a special CSS class called “resize-font-target” and then told your plugin to target “div.resize-font-target” and tada… issue solved.

    Now why didn’t I think about this before?

    Plugin Author Marcel Pol

    (@mpol)

    Aha, that is a good solution 🙂

    Thank you for posting it here. Hopefully someone can use the idea too.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Need a way to target multiple CSS tags’ is closed to new replies.