• I try to add an iframe from theme options page
    for example this one:

    <iframe src="https://www.google.com.tr" scrolling="no" frameborder="0" align="center" height = "90" width = "728" name="test" border="0">
    </iframe>

    but it doesnt work because when I see the source from browser it bacame like this one:

    <iframe src="\https://www.google.com\" name="\test\" border="\" frameborder="\" align="\center\" height="\90\" scrolling="\no\&quot;" width="\728\">
    </iframe>

    do you have any idea what to put any function toi the functions.php?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter giuseppe23

    (@giuseppe23)

    noone?

    What theme are you using? Where did you download it from?

    Thread Starter giuseppe23

    (@giuseppe23)

    theme is ok when I put iframe manualy in templates it works but when I try to put from theme settings page not working I can give the codes to make you undesrtand better

    array( "name" => "ADS Index Right",
    	"desc" => "Paste the code of ads wich will be displayed on the right of your homepage.",
    	"id" => $shortname."_adsindex",
    	"type" => "textarea",
    	"std" => ""),
    
    array( "name" => "ADS Bottom",
    	"desc" => "Paste the code of ads wich will be displayed on the bottom of your theme.",
    	"id" => $shortname."_adsbottom",
    	"type" => "textarea",
    	"std" => ""),
    
    array( "name" => "ADS Video",
    	"desc" => "Paste the codes of ads wich will be displayed on the right of your video single.php.",
    	"id" => $shortname."_adsvideo",
    	"type" => "textarea",
    	"std" => ""),

    this code above is the array in functions.php the textareas where I ut iframe from admin settings page.

    and this one is in templates:

    <?php if (get_option('xt_adsindex') <> '') { echo get_option('xt_adsindex'); } else {?>
    test code
    <?php } ?>

    What theme are you using? Where did you download it from? Just showing a few snippets of code isn’t really enough for me to diagnose the problem.

    Thread Starter giuseppe23

    (@giuseppe23)

    Theme is my own theme but I’m using a theme options page wich I got from here
    https://code.tutsplus.com/articles/how-to-create-a-better-wordpress-options-panel–net-9360

    problem is not on my theme because theme works fine but when I put iframe and embeds it doesnt work because when I use image banners works.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you replicate the problem on the Twenty Fourteen theme with all plugins deactivated? If so, provide us steps to replicate it.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WordPress changes my iframe tags’ is closed to new replies.