Support » Plugin: Collapse-O-Matic » Custom Style Not Changing The Color, Font Size, Or Text Alignment

  • Resolved sevin

    (@sevin)


    I like this plugin, but my custom style doesn’t seem to be working. I want the “Show Full Article” text to be blue like the rest of my links, 24px, and centered, but instead, it is black, 18px, and on the left.

    Here’s my custom style:
    .my_button {
    background: #ffffff;
    color: #0077dd;
    padding: 5px;
    width: 130px;
    text-align: center;
    font-size:24px;
    }

    What should I do? Thanks!

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author twinpictures

    (@twinpictures)

    Hello Sevin,
    Seems like the only thing you neglected to do is assign the my_button class to the trigger using the trigclass attribute:

    [expand title="Show Full Article" trigclass="my_button"]...
    
    sevin

    (@sevin)

    oops! Okay, I fixed that and now the text is blue and larger, thanks! It’s still not centered, though. And for some reason, the down arrow is gone. :/

    Plugin Author twinpictures

    (@twinpictures)

    Right, because the background has been replaced.

    Update the my_button css as follows:

    .my_button {
        /* background: #ffffff; */
        color: #0077dd;
        padding: 5px 5px 5px 20px;
        width: 130px;
        text-align: center;
        font-size: 24px;
        background-position: center left;
    }
    

    Also, change the default tag from span to div in the plugin settings under:
    Dashboard > Settings > Collapse-O-Matic > Default Tag

    sevin

    (@sevin)

    You’ve been very helpful. One other thing I can’t find the answer to… is there a way to change the expand title once you’ve clicked on it? Or make it disappear?

    Plugin Author twinpictures

    (@twinpictures)

    yes, The swaptitle attribute is quite clearly explained and demonstrated in the documentation.

    sevin

    (@sevin)

    guess I didn’t look hard enough. Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Custom Style Not Changing The Color, Font Size, Or Text Alignment’ is closed to new replies.