rfgoetz
Forum Replies Created
-
Forum: Plugins
In reply to: [WP-TopBar] My topbar is only showing on homepageYou did all the correct things to make it work.
You do have a number of javascript errors on your page that may be preventing the TopBar from loading. It looks like that is stopping a number of scripts from running. Those errors do not show up on your home page.
GET http://platform.twitter.com/widgets.js tafeio.pt/:45 Uncaught Error: Syntax error, unrecognized expression: [class*='wp-image-'] , jquery.js:2 GET http://cdn.tynt.com/tc.js classic.js:1 Blocked a frame with origin "http://www.youtube.com" from accessing a frame with origin "http://tafeio.pt". Protocols, domains, and ports must match. GET http://cc.simplereach.com/n?pid=4f67d94e396cef37c7000193&url=http%3A%2F%2Ft…F&authors=T%C3%A1Feio&channels=videos&tags=&cb=SPR.API.callbacks.cb6680957 404 (Not Found) slide.js:2Forum: Plugins
In reply to: [WP-TopBar] Insert Facebook Like button not workingAlso, you might need to edit wp-topbar.php
Change lines 421/459 from “<p>”/”</p>” to “<div>”/”</div>”.
(I’ll change this in the next release.)
The code is above in my last response.. I added the ?> … <?php for you.
Bob
Forum: Plugins
In reply to: [WP-TopBar] Insert Facebook Like button not workingWorks for me. Did you
echoout the above or stop/start PHP processing (via?>....<?php??><iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2Fwww.enimerwsi.gr&send=false&layout=button_count&width=100&show_faces=false&font&colorscheme=light&action=like&height=21&appId=492132430837842" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe><?phpForum: Plugins
In reply to: [WP-TopBar] My topbar is only showing on homepageIn the All TopBars view, click the box next to the word “ID” and then select bulk actions Delete. That will delete all your TopBars (on that screen.) Continue until you have no more TopBars. Now, you can start over.
Bob
Forum: Plugins
In reply to: [WP-TopBar] Insert Facebook Like button not workingThe Text Area is for text — not HTML code.
What code have you entered?
Have you tried using the new PHP options to enter your custom code?
Bob
Forum: Plugins
In reply to: [WP-TopBar] Additional Options: Add WP menu, Only Show on scrollOk – -found out how to fix it.
You need to edit wp-topbar.php
Changes lines 421/459 from “<p>”/”</p>” to “<div>”/”</div>”.
(I’ll change this in the next release.)
You’ll need to add styling to your menu via CSS to make it pretty. You can use this to set your classes:
$defaults = array( 'menu' => 'wptopbar-menu', 'menu_class' => 'wptb-menu-class', 'container_class' => 'wptb-container-class', 'echo' => 0 ); $menu = wp_nav_menu( $defaults); echo preg_replace("/\r\n|\r|\n/",'',$menu);Then style using
.wptb-menu-classor.wptb-container-class(whichever you prefer.)Forum: Plugins
In reply to: [WP-TopBar] Additional Options: Add WP menu, Only Show on scrollI did some more testing and it looks like it partially works only if you have the TopBar in the footer position.
The reason? They way that WordPress creates the Menu, it breaks how I inject the TopBar into the HTML stream (using the JavaScript function –
prepend()). WordPress includes characters that cannot be used in theprepend()function.Also, the prefix/suffix are the internal variable names I used. I should have written “before” and “after” PHP.
OK — so how to fix this? I have a partial solution:
Use this code in the “After” section instead of the code I gave you before.
$defaults = array( 'menu' => 'wptopbar-menu', 'echo' => 0 ); $menu = wp_nav_menu( $defaults); echo preg_replace("/\r\n|\r|\n/",'',$menu);HOWEVER, for some reason, the HTML causes the menus to get generated after the TopBar. I’ve looked at the generated HTML — and I cannot find a reason why it is doing that. Maybe someone with more advanced CSS skills can help solve this one!
Here is the generated HTML:
<div id="topbar1" style="top: 40; padding:0; margin:0; width: 100%; z-index: 99999;"><p id="wptbheadline1" style="....">Get your own TopBar <a style="color:#c00000; " href="http://wordpress.org/extend/plugins/wp-topbar/" target="_blank">from the WordPress plugin repository</a><div class="menu-topbarmenu-container"><ul id="menu-topbarmenu" class="menu"><li id="menu-item-435" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-435"><a href="http://null.org">null</a></li><li id="menu-item-436" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-436"><a href="http://null.com">null</a></li></ul></div></p></div>Bob
Forum: Plugins
In reply to: [WP-TopBar] Embed JWplayer in TopBarClosing – no response in over a week.
Forum: Plugins
In reply to: [WP-TopBar] Additional Options: Add WP menu, Only Show on scrollVersion 4.17 is updated with the Scroll Action. If you can, please rate the plugin and add a review — if you like my support and the plugin.
Thanks,
Bob
Forum: Plugins
In reply to: [WP-TopBar] Additional Options: Add WP menu, Only Show on scrollYes – see http://codex.wordpress.org/Child_Themes
Bob
Forum: Plugins
In reply to: [WP-TopBar] Additional Options: Add WP menu, Only Show on scrollYour functions.php is in your theme folder and is not changed when you upgrade WordPress. It is only affected when you upgrade/change your theme.
I’ll have to walk through the various use cases and implications before I add this to the plugin. For example, do I allow each TopBar to have its own menu? If so, that can create dozens of menus to populate? Do I let have all TopBar’s share one? I have to work through all of those and then test them. So, it won’t be in the next release.
Forum: Plugins
In reply to: [WP-TopBar] Additional Options: Add WP menu, Only Show on scrollOk – for #1 — I have it coded for the next release.
Did #2 work for you?
Bob
Forum: Plugins
In reply to: [WP-TopBar] Additional Options: Add WP menu, Only Show on scrollFor #1 —
The would mean a jquery change to capture the scroll() event. Let me look at the for a future change.
For #2 —
In your functions.php file add this code to create a custom menu. Then use the standard WordPress Appearance | Menu to create the menu:
//register the custom menus function register_wptopbar_menus() { register_nav_menus( array( 'wptopbar-menu' => __( 'TopBar Menu' ) ) ); } add_action( 'init', 'register_wptopbar_menus' );In the PHP (Prefix or Suffix – your choice)… use this code:
wp_nav_menu(array('menu'=>'wptopbar-menu' ));Forum: Plugins
In reply to: [WP-TopBar] Embed JWplayer in TopBarYes you can, via the PHP PREFIX option. You’ll need to put your code there that creates your player.
Regarding keeping the music going as the user browses your web pages – you’ll have to consult someone else for that since that is beyond the scope of the plugin.
Bob
Forum: Plugins
In reply to: [WP-TopBar] Short code in WP-topbarI did a quick google search.. have you tried this?
http://wpengineer.com/2051/use-wordpress-shortcodes-outside-the-editor/
Bob