Ready to get started?Download WordPress


[resolved] Creativix Iframe Attributes (4 posts)

  1. skipper0802
    Posted 1 year ago #

    Hello All,
    Our site is http://www.bikestylespokane.com. A page validation check gives us this:

    Validation Output: 6 Errors

    Line 230, Column 458: there is no attribute "allowtransparency"
    …ter_button"><iframe allowtransparency="true" frameborder="0" scrolling="no" sr…

    Line 230, Column 1396: there is no attribute "data-size"
    …ton"><div class="g-plusone" data-size="medium" data-callback="sharing_plusone"…

    Line 230, Column 1419: there is no attribute "data-callback"
    …one" data-size="medium" data-callback="sharing_plusone" data-href="http://bike…

    Line 230, Column 1447: there is no attribute "data-href"
    …-callback="sharing_plusone" data-href="http://bikestylespokane.com/2012/06/03/…

    Line 230, Column 1756: there is no attribute "data-url"
    …ton"><script type="in/share" data-url="http://bikestylespokane.com/2012/06/03/…

    Line 230, Column 1877: there is no attribute "data-counter"
    …ie-liners-and-knickers/" data-counter="right"></script></div><li class="s…

    We've search through the theme folder to find where the iframe object is being called, the files we've copied to our child theme folder, and the changes we've made to those file have not eliminated the error(s). This suggests that there's still a file calling the iframe object. We believe we've screened all the files in the parent theme.

    Does anyone have an idea what file is using the iframe object? We'd like to correct the remaining errors.

    Eric & Barb

  2. skipper0802
    Posted 1 year ago #

    These errors are related to the sharing settings featured by the Jetpack modules. After a brief search I found that the following file may be the source file calling the iframe object:

    public function get_display( $post ) {
    		if ( $this->smart == 'smart' )
    			return '<div class="twitter_button"><iframe allowtransparency="true" frameborder="0" scrolling="no" src="http://platform.twitter.com/widgets/tweet_button.html?url=' . rawurlencode( apply_filters( 'sharing_permalink', get_permalink( $post->ID ), $post->ID, $this->id ) ) . '&counturl=' . rawurlencode( str_replace( 'https://', 'http://', get_permalink( $post->ID ) ) ) . '&count=horizontal&text=' . rawurlencode( apply_filters( 'sharing_post_title', $post->post_title, $post->ID, $this->id ) ) . ': " style="width:97px; height:20px;"></iframe></div>';
    			return $this->get_link( get_permalink( $post->ID ), _x( 'Twitter', 'share to', 'jetpack' ), __( 'Click to share on Twitter', 'jetpack' ), 'share=twitter' );

    Can anyone comment that we're on the right track? Would copying this file to our child theme folder ( with allowtransparency edited-out) work?

    Eric & Barb

  3. skipper0802
    Posted 1 year ago #

    Additionally, this "sharing services" module allows us to disable the CSS and JS files in their original location, as long as we copy the respective files to our child theme folder. The sharing.js file doesn't appear to have more than this iframe info:

    // Add click functionality
    		$( '.sharing ul' ).each( function( item ) {
    			printUrl = function ( uniqueId, urlToPrint ) {
    				$( 'body:first' ).append( '<iframe style="position:fixed;top:100;left:100;height:1px;width:1px;border:none;" id="printFrame-' + uniqueId + '" name="printFrame-' + uniqueId + '" src="' + urlToPrint + '" onload="frames[\'printFrame-' + uniqueId + '\'].focus();frames[\'printFrame-' + uniqueId + '\'].print();"></iframe>' )
  4. skipper0802
    Posted 1 year ago #

    I think this thread provides our answer.

    Thanks everyone.

    Eric & Barb

Topic Closed

This topic has been closed to new replies.

About this Topic