[Plugin: WP Float] Load on specific pages?
-
Hi. Awesome plugin, thanks! How can I get each widget to only show on certain pages?
Thanks,
Doug
-
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,
DougThere is no such option for the shortcode. I hope to add that in the next plugin release.
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,
Dougsimply 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.pngThanks again Sam!
DougHi 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?
Thanksi 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?
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.
- The topic ‘[Plugin: WP Float] Load on specific pages?’ is closed to new replies.