Author:
erics , April 23rd, 2021
Ever get the spinning beachball when trying to access the top menu on your Mac? SOLUTIONS Use the GUI Open the Activity Monitor application Select All Processes from the View menu Click on the SystemUIServer process, then click Force Quit. ~or~ Via CLI In Terminal, execute killall SystemUIServer
Categories: How-To's , Technology Tags: Activity Monitor , All Processes , apple , BeachBall , Force , Force Quit , Hang , Hung , Kill , killall , killall SystemUIServer , Mac , MacOS , macosx , Menu , Quit , Restart , Shell , Spiining beachball , Stop , SystemUIServer , Terminal , Top Menu
| No comments
Author:
erics , February 16th, 2019
As of Mac OS X Lion 10.7, Terminal provides Services for opening a new terminal window or tab at the selected folder in Finder. They also work with absolute pathnames selected in text (in any application). You can enable these services with System Preferences > Keyboard > Keyboard Shortcuts > Services. Look for “New Terminal […]
Categories: How-To's , Technology Tags: apple , Finder , howto , Keyboard , MacOS , macosx , Menu , Mojave , Open , Services , Terminal , tips , window
| No comments
Author:
erics , January 21st, 2016
WordPress Admin -> Mega Menu -> Menu Themes Select the theme to edit, then scroll to the bottom and edit the area for the CSS Editor under Custom Styling. Add the following to affect the Menu Bar type menu:
# { $wrap } # { $menu } > li.mega-current-page-ancestor.mega-menu-item-has-children > a.mega-menu-link,
# { $wrap } # { $menu } li.mega-current_page_item > a.mega-menu-link,
# { $wrap } # { $menu } li.mega-current-menu-item > a.mega-menu-link
{
color : #FDBE5E ;
}
Use the above pattern to affect other menu types…as always, YMMV.
Categories: How-To's , Technology Tags: Active , Bold , Color , Highlight , howto , MaxMegaMenu , Menu , Navigation , Page , tips , WordPress
| No comments
Author:
erics , January 19th, 2015
Simple Link
$ redirect = ( is_home ( ) ) ? false : get_permalink ( ) ;
if ( is_user_logged_in ( ) ) {
$ link = '<a href="' . wp_logout_url ( $ redirect ) . '" title="Log Out">Log Out</a>' ;
} else {
$ link = '<a href="' . wp_login_url ( $ redirect ) . '" title="Log In">Log In</a>' ;
}
echo $ link ;
Complex Menu Link
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Add login/logout links to a menu
add_filter ( 'wp_nav_menu_items' , 'add_login_logout_to_menu' , 50 , 2 ) ;
function add_login_logout_to_menu ( $ items , $ args ) {
// change theme location with your them location name
$ myMenu = 'secondary' ; // or primary, etc.
if ( is_admin ( ) || $ args -> theme_location != $ myMenu ) {
return $ items ;
}
$ redirect = ( is_home ( ) ) ? false : get_permalink ( ) ;
if ( is_user_logged_in ( ) ) {
$ link = '<a href="' . wp_logout_url ( $ redirect ) . '" title="' . __ ( 'Logout' ) . '">' . __ ( 'Logout' ) . '</a>' ;
} else {
$ link = '<a href="' . wp_login_url ( $ redirect ) . '" title="' . __ ( 'Login' ) . '">' . __ ( 'Login' ) . '</a>' ;
}
$ items . = '<li id="log-in-out-link" class="menu-item menu-type-link">' . $ link . '</li>' ;
return $ items ;
}
Categories: How-To's , Technology Tags: add_filter , howto , Link , login , Login/Logout , Logout , Menu , tips , WordPress , wp_nav_menu_items
| No comments
Author:
erics , June 18th, 2013
open : function ( event , ui ) {
jQuery ( '.ui-menu' ) . width ( '220px' ) . css ( 'text-align' , 'left' ) ;
}
Categories: How-To's , Technology Tags: Auto , Autocomplete , Dropdown , howto , javascript , JQuery , jQuery UI , Menu , tips , Width
| No comments