WordPress.org

Forums

Scroll Triggered Boxes
[resolved] Formatting problem (2 posts)

  1. tb_website
    Member
    Posted 1 year ago #

    I get a problem with the formatting. I suspect this has to do with our own stylesheet as you (Danny) mentioned earlier that this plugin follows the theme's stylesheet.

    However I can't figure out why this is happening or what changes I should make to the sheet in order for the plugin to format as I want.

    At this time it is not following anything (H1 / H2 / Bold tags etc).
    Can you take a look at http://www.twentebelt.com/mail-disclaimer/

    When you scroll down you should see the scrollbox. Hope you can help.

    https://wordpress.org/plugins/scroll-triggered-boxes/

  2. Danny van Kooten
    Member
    Plugin Author

    Posted 1 year ago #

    Hi there,

    This is because your theme stylesheet only styles h1 elements (and others) inside the <div class="content">....</div> tags. Here is a very small excerpt of your theme stylesheet.

    .content strong, .left strong {
    	font-weight: bold;
    }
    .content h1, .left h1 {
    	font-size: 18px;
    	color: #111;
    	font-weight: bold;
    	line-height: 22px;
    	margin-bottom: 8px;
    }

    If you want this styles to also apply to the headings inside the scroll triggered box, change it to this.

    .content strong, .left strong, .stb strong {
    	font-weight: bold;
    }
    .content h1, .left h1, .stb h1 {
    	font-size: 18px;
    	color: #111;
    	font-weight: bold;
    	line-height: 22px;
    	margin-bottom: 8px;
    }

    Hope that makes sense, good luck!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Scroll Triggered Boxes
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.