
-
AuthorPosts
-
September 30, 2015 at 9:38 am #511231
I wanted to add in the button somewhere above the fold. I tried putting it in a code block but it didn’t work. I also tried putting it in the header.php file and a few of the page templates
website: http://www.lebukhara.com.au/
Button: `<script type=”text/javascript”>
document.write(‘<script type=”text/javascript” src=”http://widget.dimmi.com.au/Button.js?id=918&referrerUrl=’ + encodeURIComponent(window.location) + ‘\”></’ + ‘script>’);
</script>`
Widget: `<script type=”text/javascript”>
document.createElement(‘h9’);
(function () {
var dim = document.createElement(‘script’); dim.type = ‘text/javascript’;
dim.src = ‘http://widget.dimmi.com.au/Widget.js?id=918&referrerUrl=’ + encodeURIComponent(window.location);
var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(dim, s);
})();
</script>
<link type=”text/css” rel=”stylesheet” href=”http://widget.dimmi.com.au/content/embed.css” media=”all”>
<div id=”dimmi-widget-918″ class=”dimmi-widget”>
<div>
<h9>Le Bukhara</h9>
<span>Bookings by <a href=”http://www.dimmi.com.au/about-dimmi/why-book-with-us” target=”_blank”>Dimmi</a></span>
</div>
</div>`September 30, 2015 at 1:22 pm #511444Hey larian96!
Can you please post a screenshot and show the changes you would like to make?
Best regards,
YigitOctober 2, 2015 at 2:47 am #512502https://www.dropbox.com/s/5efmk9u8q0kw572/Screen%20Shot%202015-10-02%20at%2010.07.48%20am.jpg?dl=0
running the single page restaurant theme enfoldOctober 2, 2015 at 9:26 am #512636Hi,
Could you please provide us with a temporary admin login so that we can take a closer look? You can post the details in the Private Content section of your reply.
Regards,
RikardOctober 2, 2015 at 9:38 am #512643provided
October 2, 2015 at 10:12 pm #513048Hi!
That is a new button for the slider.
The code you have tried what error was producing to you?Cheers!
BasilisOctober 6, 2015 at 1:43 am #514100I put a button there that links to an external page temporarily. The problem was that the button was not displaying and javascript widget would not display on the page or pop up.
October 6, 2015 at 5:29 pm #514622Hey!
you are using an old version of WordPress and Enfold. Please upgrade both to the newest version.
Though button is working fine for me. It’s displaying fine and opens another page just fine for me. Could you fix it?Best regards,
AndyOctober 7, 2015 at 12:48 am #514863The button on there now is just a temporary fix, the code i provided earlier is what I want it to be.
Now running enfold 3.3.2 and wordpress 4.3.1
October 7, 2015 at 8:14 am #514966Hey!
Where did you get the code? I tested it on a code block and it works:
<script type="text/javascript"> document.write('<script type="text/javascript" src="http://widget.dimmi.com.au/Button.js?id=918&referrerUrl=' + encodeURIComponent(window.location) + '\"></' + 'script>'); </script> Widget: <script type="text/javascript"> document.createElement('h9′); (function () { var dim = document.createElement('script'); dim.type = 'text/javascript'; dim.src = 'http://widget.dimmi.com.au/Widget.js?id=918&referrerUrl=' + encodeURIComponent(window.location); var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(dim, s); })(); </script> <link type="text/css" rel="stylesheet" href="http://widget.dimmi.com.au/content/embed.css" media="all"> <div id="dimmi-widget-918″ class="dimmi-widget"> <div> <h9>Le Bukhara</h9> <span>Bookings by <a href="http://www.dimmi.com.au/about-dimmi/why-book-with-us" target="_blank">Dimmi</a></span> </div> </div>
Screenshot:
Cheers!
IsmaelOctober 7, 2015 at 9:16 am #515028I tried it in a code block and the button didn’t display, you can see the results on the screenshot. Maybe you can try on the page?
October 7, 2015 at 9:17 am #515029October 9, 2015 at 5:52 am #516149 -
AuthorPosts
- You must be logged in to reply to this topic.