WordPress.org

Support

Support » Plugins and Hacks » WP Float » [Resolved] [Plugin: WP Float] Load on specific pages?

[Resolved] [Plugin: WP Float] Load on specific pages?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author samhagin

    @samhagin

    you can use any of the display options for the widget such as Show on Posts, Show on Pages, Show for Posts Only in Category, however if none of those fit the criteria for the post/page you want to use WP Float on, you can use the shortcode instead. For information on using the shortcode, please refer to http://webwiki.co/wp-float

    Thanks! I had not tried the shortcode yet and it works great. One thing. Is there any way to set the alignment of the content from the center within the shortcode?

    Thanks again,
    Doug

    Plugin Author samhagin

    @samhagin

    There is no such option for the shortcode. I hope to add that in the next plugin release.

    Plugin Author samhagin

    @samhagin

    the new version has been released and it has shortcode support

    This is great news! Thank you.

    I took a look around but could not find how to set the alignment to center. Can you direct me please?

    Thanks again,
    Doug

    Plugin Author samhagin

    @samhagin

    simply add center="true" if you want to “set alignment from center”. you can also use the tinymce button for WP Float and that will add the shortcode automatically for you. You can only access the button in visual mode, the button looks like this http://webwiki.co/wp-content/uploads/2012/05/wp-float-tinymce.png

    Thanks again Sam!
    Doug

    Hi Sam,
    I’m afraid the shortcode is not working for me … I’ve tried on several websites. It is working if I use the plugin settings … but if I use the shortcode nothing happens.

    Here is a test page: http://countrysidetimes.com/float-test

    Any idea why this is happening?
    Thanks

    Plugin Author samhagin

    @samhagin

    i checked your page and it does shows an error, screenshot at http://prntscr.com/i42b1, this means you have a blank paragraph (<p> tag) before the closing [/wp_float]. check your post under the HTML tab using the WordPress editor and remove the <p></p>

    Hi Sam,

    Here is the code I’m using:

    [wp_float type=”float” location=”top” align=”right” center=”false” offsetlocation=”200″ offsetalign=”” speed=”” width=”100″ ]hello[/wp_float]

    I am not adding any <p> tags.

    BUT .. By turning off all plugins and changing themes I’ve discovered it is the theme I’m using. It works with the default theme but have tried both Bangkok Press (which we are using) and another called Continuum.

    So it looks like the wordpress is adding this automatically. Have you come across this before? Any ideas how to solve it?

    I have tried the plugin called Raw HTML with the following variations:

    [wp_float type=”float” location=”top” align=”right” center=”false” offsetlocation=”200″ offsetalign=”” speed=”” width=”100″ ][raw]hello[/raw][/wp_float] – didn’t work

    [raw][wp_float type=”float” location=”top” align=”right” center=”false” offsetlocation=”200″ offsetalign=”” speed=”” width=”100″ ]hello[/wp_float][/raw] – just should the shortcode code in full

    Thanks

    If I paste this in it works:

    <div id=’wp-float-1551′>testing testing 1 2 3</div>
    <p> <script type=’text/javascript’>
    jQuery(document).ready(function($) {
    jQuery(‘#wp-float-1551’).dcFloater({
    width: ‘100’,
    location: ‘bottom’,
    align: ‘right’,
    offsetLocation:400,
    offsetAlign:0,
    speedFloat:”,
    tabText: ”,
    tabClose: false,
    easing: ‘easeOutQuint’,
    event: ‘hover’,
    disableFloat:false,
    center: false, centerPx: 0,
    idWrapper: ‘wp-float-post-1551’,
    });
    });
    </script>

    But there might be a neater way of doing it?

    Plugin Author samhagin

    @samhagin

    you can try using a plugin such as http://wordpress.org/extend/plugins/ps-disable-auto-formatting/ to disable auto formatting for the WordPress editor.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘[Resolved] [Plugin: WP Float] Load on specific pages?’ is closed to new replies.
Skip to toolbar