• Resolved redshi10

    (@redshi10)


    First of all, I am not a coder or developer – I am very much a neophyte. I have built my web page using Boldgrid and Word Press. I want to embed a short code javascript widgit into one of my grid blocks on one of my web pages. If I add this code to one of the Boldgrid pre-defined widgit areas, it works perfectly. But I want to place it in the center of my page where there are no widgit slots, not in one of the pre-defined Boldgrid widgit slots. I was hoping that your plugin could do that but I am confused about how to use it. I do not know how to insert it onto the page or, more specifically, I am not sure how to reference the key word and identifier to the actual code. This is most likely due to my not understanding some key concepts but I am also wondering if I am trying to do something this plug-in is not meant to do. Any help you can give will be appreciated.

    -Robert

    https://www.ads-software.com/plugins/simple-embed-code/widgit

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author David Artiss

    (@dartiss)

    Robert,

    As long as it’s a post or page you’re trying to embed the code into, yes, it should work, although I don’t know anything about Boldgrid.

    At it’s simplest, and out of the box, find the Custom Fields box under the post editor. Now add a new entry with CODE1 as the name and your code as the value. Save it. Then, in your post place %CODE1% where you want the code to appear. That should be it.

    Let me know if you’re still struggling with this, with some more detail as to what you’ve tried and what’s going wrong.

    Thread Starter redshi10

    (@redshi10)

    Thanks for the reply. As I said, I am new at this. Part of the problem may be Boldgrid. Once installed, Code Embed gives me a set up page with instructions but they do not mention how to add the code as a value. I can set the keyword (such as CODE1) and identifiers but nowhere do I see where to enter the value (code) associated with the keyword. You mention Custom Fields box under the post editor. I am not sure what you are referring to since I do not see those entries in Boldgrid or in the Code Embed setup page. Maybe this is a Word Press function but I have little experience with Word Press. I could send you more detail about the set up page and what I can see in Boldgrid via attachments, but not apparently in this forum post. Right now, my main issue seems to be how to associate the code with the code entry or keyword. Thanks.

    Plugin Author David Artiss

    (@dartiss)

    When you’re using Boldgrid, I assume you do so in a post? Does that mean you’re in the post editor? It should say “Edit Post” at the top.

    Thread Starter redshi10

    (@redshi10)

    As I understand it, Boldgrid is set up with grid blocks that accept any type of content – media, blog post, etc. I have populated my web site with a mixture of writing and media content. In some instances, I have used iframes to add a media content that is constantly updated from another site. What I am trying to do now is insert a short script for a moon phase calendar onto one of my pages. This is essentially it without the correct purchased code:

    <script language=”JavaScript” type=”text/javascript” src=”https://www.imooncal.com/cs/mc.js?ln=14xxxxxxxxxxxx”></script&gt;

    If I put this script into Boldgrid’s predefined widgit areas, it works like it is supposed to. But the area (center f the page essentially) I want to insert this script into is not one of Boldgrid’s predefined widgit areas. It is a “grid block” as Boldgrid calls it. I can put iframe scripts, media of all sorts including video, and text into one of these grid blocks. Hope this helps you understand what I am trying to do.

    Plugin Author David Artiss

    (@dartiss)

    No, I’m struggling to understand. Unless, when you use Boldgrid, you’re in the post edit screen, as I detailed above, then this plugin will not work.

    Thread Starter redshi10

    (@redshi10)

    Thanks. I am going to have to go back to Boldgrid Support. I have had very little success with them so far which is why I contacted you. They suggested I contact a Word Press expert to write the code in for me – not much help indeed. Your app just may not be able to do what I want but it was worth a try. Thanks again.

    -Robert

    Plugin Author David Artiss

    (@dartiss)

    No worries. With Boldgrid being a premium product I’m not a position to try it out for myself – I’ve just taken a look at their website though and I think they do it separately from the main editor, which means this won’t do what you’re after.

    What I may look into doing in a future release is allowing code to be added centrally, via the admin screens, rather than specific posts – that way you simply need to add the %CODE1% to any post content and it should work.

    Thread Starter redshi10

    (@redshi10)

    Thank you very much. As I said, it was worth a try. I would definitely be interested in that update if and when you offer it.

    Hi Robert,

    I’m with the BoldGrid team, and I’m hoping I can be of assistance.

    If I add this code to one of the Boldgrid pre-defined widgit areas, it works perfectly. But I want to place it in the center of my page where there are no widgit slots, not in one of the pre-defined Boldgrid widgit slots.

    To me, it sounds like you’re working within the Customizer, correct? With all WordPress themes in general, not just BoldGrid themes, if a theme does not have a widget area setup in a location you want, you essentially will have to write some PHP code to modify your theme.

    This is for more advanced users, but this is WordPress’ documentation on the matter:
    https://codex.www.ads-software.com/Widgetizing_Themes

    But I want to place it in the center of my page where there are no widgit slots, not in one of the pre-defined Boldgrid widget slots.

    The Code Embed seems to allow you to add widgets within posts. This means that you should be able to edit pages (outside of the Customizer) and add the necessary code.

    Does this help? Let us know if you have any further questions.

    Thread Starter redshi10

    (@redshi10)

    Thank you, Brad. I am still trying to work this solution but I have decided for the time being that this script does work well in one of the pre-defined widget areas. I have other planned projects which involve re-defining a widget location so this documentation is appreciated (although I am NOT an advanced user). I still believe Code Embed might work but I have not been able to figure out how to associate the script with the code keyword. I think that is a problem for me because I do not know how to edit a post in Boldgrid (see above). Much of what I know about Boldgrid is based on trial and error (more error than not). At this time, working a solution out is more for future projects since I have now decided that I like the above-mentioned script in one of the pre-defined locations. Thanks for your help.

    -Robert

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Neophyte Use of Code Embed’ is closed to new replies.