Support question moved from DNT comments
-
This is a support thread I have moved from the comments of the Ditty News Ticker page.
user – Can i have your email so i can contact you, i am trying to figure out how to implement this plugin to the top of my theme but i am having trouble and your instructions arent so clear in were the code should go exactly.
me – If you want your ticker to show up within your normal “content” paste the ticker Shortcode into your desired post or page.
If need a ticker somewhere else on your site that isn’t accesible dynamically in the dashboard, you just need to copy and paste the Direct Function of the ticker anywhere between the body tags in your theme code. That’s about all I can tell you as it’s really up to you where you want to place it.
You do need to make sure your theme contains the wp_head() and wp_footer() functions or else the ticker will not work no matter which way you insert it.
user – I’m not really sure where exactly i should put it in the theme, this is always what happens. https://cl.ly/image/0M191o0V153w. I wanted something like you have on top of this site, the latest extensions https://cl.ly/image/2W1j3p1x3N1p.
Where would the wp_head() and footer functions in the theme be?me – Ok, first thing. Does the ticker function fine if you use it in a shortcode within a page/post? If so, you don’t need to worry about wp_head() or wp_footer() as your theme contains them. If your shortcode doesn’t work, than your theme probably is missing one or both of those functions… If your theme was professionally built it most likely contains those functions.
Second. It looks like you are just missing the php tags around the function (since it’s a php function) you are placing in theme. Currently it’s just showing up as HTML. You need to put:
<?php ditty_news_ticker(475); ?>
user – It doesn’t seem to work when i put it as short code, you can see here: https://sypulse.org/wordpress/2013/02/12/news-ticker-test/
Also now i added the php tags and the title shows up but no moving text, as you can see if you visit the page the top top of the page where it says news ticker test.
This is a custom theme i bought.
Hope you can help me get it similar to what you have it on the top of your site which i think looks great.
user – Got it to show up in the shortcode like it does on top but cant seem to get the text moving.
me – You have some javascript errors happening with other plugins or possibly your theme that you’ll have to fix or disable before my plugin will work as those errors kill any other javascript that should run afterwards.
There are 2 errors in a file called jquery.ticker.js and one in a file called all.js
user – Looked through my plugins i dont see any of those 2 file names associated with any plugins installed or the theme.
user – Actually i found jquery.ticker.js and its part of my theme, i dont however see all.js
me – I’m guessing it’s coming from your Facebook widget as it’s listing the error as stemming from this function:
FB.getLoginStatus()
In your browser open the developer tools or Firebug and view the console output. You’ll see the errors there.
user – So i got it to work now, but i want to to look exactly like the one you have on top of your website, the on my website now doesnt look good. Can you tell me how to make it like yours.
me – I have added a few classes to style that ticker:
<?php ditty_news_ticker(78, 'mtphr-dnt-preview-container latest-extensions'); ?>
Here are the styles I applied:
.mtphr-dnt-preview-container { background: #FAFAFA; border: 1px solid #F1F1F1; padding: 20px; -webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px; } .latest-extensions { font-size: 12px; padding: 10px; margin-bottom: 20px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; } .latest-extensions h4.mtphr-dnt-posts-title, .latest-extensions a, .latest-extensions p { display: inline; font-size: 12px; line-height: 0; } .latest-extensions h4 { padding-right: 5px; }
You also need to set your title as an inline title for your ticker (Global Settings). Keep in mind that some of the styling for my ticker is derived from my theme styles… so, it still may not look exactly like mine up top. You’ll have to probably add/modify some of these styles to fit your needs.
That’s about all I can do for you. The plugin is intentionally made with very little styling applied to it so it can fit your theme styles with minimal effort.
user – Thank you! I got it. It looks much better. The display title is not centered and is to big of a font, is that something in the css or is that a setting?
me – That would need to be resolved via CSS. You’ll probably have to figure override the line-height and font-size that’s being set somewhere in your CSS.
user – Any idea what i should be looking for exactly? Not really familiar with css.
- The topic ‘Support question moved from DNT comments’ is closed to new replies.