Support » Plugin: Ditty News Ticker » Insert Code in Header

  • Resolved wafwaf

    (@wafwaf)


    Hi,

    1- Where do you recommend inserting the code in the header so it will show on the entire site and all pages?

    2- Also I was searching your documentation and couldn’t find the code (I found an image of it but not the actual code).

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author metaphorcreations

    (@metaphorcreations)

    1. It’s difficult to say as themes can be setup differently. If you could point me to your site so I could see it, I could give you a suggestion for the placement.

    2. You just need to copy the Direct Function that is generated for your ticker and paste it into your theme files. The Direct Function can be found at the top of your ticker post (edit) or the News Tickers page that lists all your tickers. If you place the code within existing php scripts, you’ll need to remove the open/close php tags from the Direct Function code.

    wafwaf

    (@wafwaf)

    Great. The Theme we are using is Newswire (https://wordpress.org/themes/the-newswire/)

    Plugin Author metaphorcreations

    (@metaphorcreations)

    Thanks. I would suggest placing the ticker directly under the menu so it’s between the <header id=”branding”> element and the <div id=”content”> element. Keep in mind that you’ll want to create a child them, then copy over the theme’s header file and make the file adjustment from within the child theme.

    https://developer.wordpress.org/themes/advanced-topics/child-themes/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Insert Code in Header’ is closed to new replies.