WordPress.org

Ready to get started?Download WordPress

Forums

Toggle Box
Toggle open by default (7 posts)

  1. Stuart Richards
    Member
    Posted 2 years ago #

    Hey, great toggle plugin!

    Im a little stuck as I have amended the css so the toggle box is transparent with no borders etc etc but for some reason, by default the toggle shows the text I'm tying to hide!

    Is there any way of reversing this so its a plus people have to click to expand the text?

    One other thing as well, my hyperlinked text doesn't appear to work? The alt text still appears in the bottom with the address and work when you right click and open in new page or tab but on firefox and safari, can't click to go to the link?

    Any ideas?

    http://wordpress.org/extend/plugins/toggle-box/

  2. phantom.omaga
    Member
    Plugin Author

    Posted 2 years ago #

    i will look in to but that could you please share the css amendments that you made
    ______________________________________________________________________
    Sorry for not being able to reply earlier i had my mock exams going on

  3. phantom.omaga
    Member
    Plugin Author

    Posted 2 years ago #

    the thing is that the css defines the elements of the toggle and those elements are used by jquery to hide an unhide the content

  4. Stuart Richards
    Member
    Posted 2 years ago #

    Sure, I understand...

    The css I now have is as follows:

    h3.toggle {
    background-repeat: no-repeat;
    background-position: -15px -16px;
    font-size: 16px;
    padding: 0 0 10px 23px;
    cursor: pointer;
    }
    h3.toggle a {
    text-decoration: none;
    display: block;
    }
    h3.toggle-active {
    background-position: -64px -67px;
    }
    .toggle-box {
    clear:both;
    margin: 0 0 50px 0;
    overflow: hidden;
    }
    h3.toggle {
    background-image: url(images/sprite.png);
    font-size: 18px;
    }

  5. Stuart Richards
    Member
    Posted 2 years ago #

    Here are the screenshots of:

    Default:
    http://cl.ly/431t0w330K0z0C1i2C3C

    After click on toggle:
    http://cl.ly/3s0l1Y3m2v0W1C0p1w2U

    So it clearly functions as a toggle, I just want the text hidden by default and the links to be active on click, not on right click and open in new link.

    Thanks
    Stu

  6. phantom.omaga
    Member
    Plugin Author

    Posted 2 years ago #

    did you change the toggle-box.js in any way

  7. phantom.omaga
    Member
    Plugin Author

    Posted 2 years ago #

    and if you could spare a link that will be more then helpful

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic