• Okay, what I want to do is so simple, it may not even exist. I’ll try to keep this short.

    My site is a fantasy sports site. I have these three javascript codes that when inserted into my header, anywhere a recognized player name shows up, it creates a little bubble next to their name that once clicked, brings up a pop up giving a players latest news and stats.

    Problem is, I can only have one sport active in my header at a time. They use the same variables, so when all three are put in the header, the one that is last on the list is the only one that gets run. I’ve already tried to find a way to combine the code to no avail, but I did find a workaround.

    If I activate the one I use the most in my header (NBA), if I write an NFL post, I can put the NFL code in the “text” portion of the article, and it will override the NBA one in my header. Works great.

    Now my issue. The code is quite long, and I don’t want to have to retype it every time. Not to mention I have 40 other writers, and I doubt they even know how to do it. What I want to do is create a button on the editor (on the “text” side) that when clicked, it writes the code. That’s it. Click a button and there appears the code. I’ve downloaded multiple “custom button” plugins to no avail.

    Is there a way to do this. Keep in mind, I have little to no coding experience, but I am proficient in copy/paste. LOL. My site is GoingFor2.com.

    Thanks in advance,
    -Geoff

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Custom Button in Editor’ is closed to new replies.