How to add iframe ads below title in blogspot? - iframe

i want to add an iframe ads in one of my blogspot blog below the title in a single post, i find the solution to put the ads before these line of code :
<data:post.body/>
So my ads code is just like this :
<iframe src="http://myblog.com/display?ref=0000&q=KEYWORD&smart_ad_id=002" width="200" height="200" frameborder="0" scrolling="no" allowtransparency="true"></iframe>
<data:post.body/>
That was an easy step, but i got a problem when i want to add the title to replace the "KEYWORD" line inside those iframe. The code to call the title is here :
<data:post.title/>
When i add those line of code to replace the "keyword" line in my iframe code, i got an error :
<iframe src="http://myblog.com/display?ref=0000&q=<data:post.title/>&smart_ad_id=002" width="200" height="200" frameborder="0" scrolling="no" allowtransparency="true"></iframe>
Can anyone gives me solution on this, thanks..

I checked your post and also used your code in my blog. And I figured out that you can add in blogger template but the external link(http://myblog.com/display?ref=0000&q=KEYWORD&smart_ad_id=002) contains equal signs(=) which aren't acceptable So you can't add the above iframe instead of it you can use other which doesn't contain the equal sign.

Related

How to load template in i frame with in another template

I have a archive template in which I want to try add other template in iframe but I don't know how to add this? I am trying to do like this one
<iframe id="iframeBox" src='<?php echo get_template_directory_uri();?>/archive-programmes.php' sandbox="" FRAMEBORDER="no" height="500" width="500"></iframe>
I would create a page using that template and use the page URL on to your iframe.
<iframe id="iframeBox" src='URL here' sandbox="" FRAMEBORDER="no" height="500" width="500"></iframe>
#seema,
Not sure what you are trying to achieve here but you can do such a thing using get_template_part function. Alternatively if you only want to use iframe then you will have to include the page created using the template and not the template file itself.

Google Map on Listing Section Wordpress

I used business directory plugin which add listing section. Add the listing page, I try to add the map inside the listing page. The map seems to appear inside wordpress directory dashboard but it does not appear in the website. I know that this plugin got google map module, but is there any way to put google map without using the google map addon?Here is my code
<p style="text-align: center;"><img class="alignnone size-medium wp-image-291" src="https://harta-net.s3.amazonaws.com/uploads/2018/05/f84590ac-b53e-432d-9137-2241c7075f2d_tb-300x147.jpeg" alt="" width="300" height="147" /></p>
<iframe style="border: 0;" src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3984.3164489624587!2d101.61260631430928!3d3.0093049978084196!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x31cdb36044fe6151%3A0x9c6f6535d01735ff!2sMasteron+Grand+Pavilion!5e0!3m2!1sen!2sin!4v1526629036980" width="600" height="450" frameborder="0" allowfullscreen="allowfullscreen"></iframe>
directory dashboard image. Here is the link of my website
edit: Add the code and the website link
edit 2: try to use other google map plugin to add but still fail
edit 3: I found the problem is because I need to create a section for the google map inside business directory form to make it appears. Additional question, is it possible to only input adddress and auto change it from address to google map?
you can try to add this on any page,post or sections of content/text box
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3984.3164489624587!2d101.61260631430928!3d3.0093049978084196!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x31cdb36044fe6151%3A0x9c6f6535d01735ff!2sMasteron+Grand+Pavilion!5e0!3m2!1sen!2sin!4v1526629036980" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>
Hi Did you added the api key for google maps for specific live url? if not then you have to create and after that you have to mention in your iframe

How to replace strings in the values of a particular custom field in all posts?

I have a custom field of name: embed, thousands of wordpress posts are with this custom field with its value of an external player:
<iframe width="560" height="315" src="https://www.youtube.com/embed/xxxxxxxxxxx" frameborder="0" gesture="media" allowfullscreen></iframe>
I need to modify these values from 560 to 700 and 315 to 450.
I have a problem in the layout of a project, because of these standard dimensions, I've made a change that requires this change:
<iframe width="700" height="450" src="https://www.youtube.com/embed/xxxxxxxxxxx" frameborder="0" gesture="media" allowfullscreen></iframe>
How to make this str_replace in the embed custom field in all wordpress posts?
I can display these values directly in post_content with the values I need, so another solution would be to avoid displaying this value of custom field embed in all posts to avoid two players.

WordPress Layer Slider YouTube video embbed

I have using Layer Slider WordPress plugin and added YouTube embed code snippet for showing YouTube video as one slide. i have using a code snippet like below in one layer of this slider,
<iframe width="1400" height="400" src="https://www.youtube.com/embed/E5ln4uR4TwQ?autoplay=0&rel=0&ecver=1" frameborder="0" allowfullscreen></iframe>
it's working. but how to set auto play stop option in video.
also tested the below code by placed &autoplay=0 at the end of the ID.
<iframe width="1400" height="400" src="https://www.youtube.com/embed/E5ln4uR4TwQ&autoplay=0&rel=0&ecver=1" frameborder="0" allowfullscreen></iframe>
Thanks
LayerSlider WP plugin has an option to autoload videos, which can be overriding the autoplay parameter of your embed video.
In the slider you want to put the video, go in the "Slider settings" tab and then choose the "Videos" submenu to enable or disable this option:

video shortcode not working in wordpress site

I want to add mp4 video to my page, but shortcode [video] not workig. I see only string in frontend with:
[video width="640" height="360" mp4="http://localhost:8080/CC/wp-content/uploads/2015/05/movie.mp4"]
Where is the problem ?
Thanks for help.
Try putting the closing shortcode tag [/video] like this
[video width="640" height="360" mp4="http://localhost:8080/CC/wp-content/uploads/2015/05/movie.mp4"][/video]
its shoudnt be a requirement but just in case try it let us know.
You neglected the short-code. You wrote mp4 instead of src
Code corrected:
[video width="640" height="360" src="http://localhost:8080/CC/wp-content/uploads/2015/05/movie.mp4"]
In my case, I was seeing a normal link to the video instead of the video element.
Removing the playsinline attribute from the video tag (which had been added via a PHP filter in my functions.php file) and making sure the video format was correct fixed the issue for me.

Resources