WordPress.org

Ready to get started?Download WordPress

Forums

WP Float
[resolved] Load on specific pages? (13 posts)

  1. DougEvans
    Member
    Posted 1 year ago #

    Hi. Awesome plugin, thanks! How can I get each widget to only show on certain pages?

    Thanks,
    Doug

    http://wordpress.org/extend/plugins/wp-float/

  2. samhagin
    Member
    Plugin Author

    Posted 1 year ago #

    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

  3. DougEvans
    Member
    Posted 1 year ago #

    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

  4. samhagin
    Member
    Plugin Author

    Posted 1 year ago #

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

  5. samhagin
    Member
    Plugin Author

    Posted 1 year ago #

    the new version has been released and it has shortcode support

  6. DougEvans
    Member
    Posted 1 year ago #

    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

  7. samhagin
    Member
    Plugin Author

    Posted 1 year ago #

    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

  8. DougEvans
    Member
    Posted 1 year ago #

    Thanks again Sam!
    Doug

  9. ichomusic
    Member
    Posted 1 year ago #

    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

  10. samhagin
    Member
    Plugin Author

    Posted 1 year ago #

    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>

  11. ichomusic
    Member
    Posted 1 year ago #

    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

  12. ichomusic
    Member
    Posted 1 year ago #

    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?

  13. samhagin
    Member
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.