• Resolved Andrewjmarino

    (@andrewjmarino)


    Hi,
    First, this looks like a great plugin, good admin and documentation. However, being a newbie I have a few customization CSS questions that I didn’t find while searching the help forum or Ditty website.
    I’m trying to create a scrolling list for the donors on our website. Currently, I have the donors in a Tablepress table, but I think it is getting too big to display nicely and manage. Link to that page below.
    The donors are coded by amount donated (gold, silver, bronze)
    My questions:

    1) Can I set a different font color (gold, silver, bronze)
    per tick?
    I tried playing with some html/css options but couldn’t figure it out.

    1a) Or, change the background color (gold, silver, bronze) per tick?

    2) Alternatively, can I put an small image (gold medal/silver medal/bronze medal) before the text for the tick and then the text. For example
    (image gold medal)donor’s name, country, year donated,

    3) Is it possible for the scroll to be multiline. I thought ‘force line breaks’ would do that but apparently not. When I check the ‘force line breaks’ box and then click update the box doesn’t stay checked. For example, I may want a left to right scroll something like this.

    name name
    country, year country, year
    project donated to project donated to

    I think the other CSS features I want I can figure out, but sometimes I’m not very clever.

    I’m always inclined to donate to good plugins and good support 🙂

    Thank you
    Andrew

    Here is the link for the table that I want to transform the information from.
    http://www.visitbanteaychhmar.org/about/support-us/

    http://wordpress.org/plugins/ditty-news-ticker/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Andrewjmarino

    (@andrewjmarino)

    Hi,

    I have partially answered this myself. I need to play with the colors and background colors more and see if I can make it look ok.
    I also need to experiment with the donors that have links to their websites, because the link color is set in my theme.

    <p style=”color:gold;”> tick text </p>
    and
    <p style=”background-color:gold;”> tick text </p>
    seem to work

    But, I still have the above question about the multiline scroll. Is it possible? For me, the ‘force link break’ is not staying checked if that matters.

    Thanks
    Andrew

    Plugin Author metaphorcreations

    (@metaphorcreations)

    The force line-breaks will do what you are talking about, but you are correct, it is not functioning at the moment. I will look into that and fix for the next update.

    There isn’t a good way to target individual ticks within a ticker for styling… there are classes and id’s setup for each ticker, but not individual ticks. You can add html into the tick, though, if you want to wrap your text in a custom span tag with a class in order to target via css. So, you could add a ticker like:

    <span class="gold-donor">Add text within here</span>

    And then add custom css to the News Ticker > Setting page:

    .mtphr-dnt-tick .gold-donor {
      color: #FF0000;
      background: #000000;
    }

    And for the links you just need to target them to override your theme settings:

    .mtphr-dnt-tick .gold-donor a {
      color: #00FF00;
    }

    … you’ll need to adjust the hex numbers to whatever colors you need.

    To add images, you can manually add the html to add them:

    <span class="gold-donor"><img src="/path-to-image" width="10" height="10" />Add text within here</span>

    Hopefully this will get you heading in the right direction.

    Thread Starter Andrewjmarino

    (@andrewjmarino)

    Hi,

    Thanks. I think I’ve got it up and running. I may experiment a little with the text size and font type. But, I generally like the look.

    I decided to pass on doing the links, since I also have the company logos(linked) in the sidebar. It would just be redundant to have the links in the ticker, too.

    I may eventually use your Image ticker if we get more donors 🙂

    The multi-line (force-breaks) will probably look better for my needs whenever you get to fixing it.

    Thanks, I like the plugin and support! 🙂
    I’ll mark this as resolved.

    Andrew

    http://www.visitbanteaychhmar.org/about/support-us/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Multiple Font colors per tick and CSS questions’ is closed to new replies.