Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1146215
    dogpile
    Participant

    Hi,

    is there a way to make the headlines in cornerstone responsive?

    best regards!

    #1146218
    dogpile
    Participant
    This reply has been marked as private.
    #1146247
    Rupok
    Member

    Hi there,

    Thanks for writing in! Yes you can use “Responsive Text” in Cornerstone – http://prntscr.com/ca5caq

    Let’s add a selector there with minimum and maximum font-size – http://prntscr.com/ca5cgm

    Then use the selector in Class field for your Custom Headlines – http://prntscr.com/ca5cq2

    Hope this helps.

    Cheers!

    #1146281
    dogpile
    Participant

    Thanks for the Screenshots. I defined the rule attached to the screenshot and applied the class to the element, but it wont work. Anything wrong with the declaration? In theory it is supposed to work, right?

    #1146282
    dogpile
    Participant

    Here’s the files:

    #1146352
    Lely
    Moderator

    Hi There,

    Thank you for the screenshot. It’s not working because you have added dot (.) on the class field. On the class field just add h-unter without the dot.

    Hope this helps.

    #1146462
    dogpile
    Participant

    Works almost like a charm. But there are still some breakpoints that will disappear. Just look at the screenshot

    #1146514
    Joao
    Moderator

    Hi There,

    Try decrease in a couple of pixels your minimal font size.

    Let us know how it goes,

    Joao

    #1146616
    dogpile
    Participant

    Its not helping, imho it is not the minimal-viewports that cause trouble, its the areas in the middle..

    #1146854
    Rupok
    Member

    Hi there,

    Thanks for writing back. It will be automatically adjusted based on your minimum and maximum font size along with the compression. If you still need to adjust the font-size for any specific screen range; you can add this under Custom > CSS in the Customizer.

    @media only screen and (min-width: 800px) and (max-width: 1100px) {
    .h-custom-headline.h-unter {
      font-size: 16px !important;
    }
    }

    Hope this helps.

    #1152810
    dogpile
    Participant

    It helped! Is it possible to declare this rule sidewide for all -say- h5-headlines to behave responsive? otherwise it would be a painful job to manually declare this for almost a hundred pages..

    #1152896
    Christopher
    Moderator

    Hi there,

    Yes, it’s possible. Please update previous code to :

    @media only screen and (min-width: 800px) and (max-width: 1100px) {
    .h-custom-headline.h-unter,h5,.h5 {
      font-size: 16px !important;
    }
    }

    Hope it helps.

  • <script> jQuery(function($){ $("#no-reply-1146215 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>