Author:
erics , January 5th, 2021
global $ wp ;
$ slug_missing_outside_slashes = add_query_arg ( array ( ) , $ wp -> request ) ;
$ current_url = home_url ( $ slug_missing_outside _ slashes ) ;
$ form_action = '/' . $ slug_missing_outside _ slashes . '/' ;
https://codex.wordpress.org/Determining_Plugin_and_Content_Directories
Categories: How-To's , Technology Tags: Current , howto , Page , Path , Slug , tips , URI , URL , WordPress
| No comments
Author:
erics , November 19th, 2019
All credit to Graham Walters for this excellent plugin and post, upon which this post is based – thank you, sir! https://grahamwalters.me/lab/disable-wpautop-on-specific-postspages/ Recently, a client was having problems using a plugin called by a shortcode. As it turned out, the JavaScript embedded in the returned content was being broken by the WordPress auto-paragraph feature known […]
Categories: How-To's , Technology Tags: add_filter , Auto-Paragraph , autop , Disable , Filter , howto , Page , POST , Prevent , remove_filter , Stop , tips , turn off , WordPress , wpautop
| 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 , September 5th, 2015
SELECT DISTINCT `meta_value` FROM `wp_postmeta` WHERE `meta_key` LIKE '_wp_page_template'
Categories: How-To's , Technology Tags: File , File Name , howto , Page , Template , tips , WordPress
| No comments
Author:
erics , May 23rd, 2012
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function editableInit ( ) {
jQuery ( '.editable' ) . editable (
'/your/path/to/process_your_update.html' ,
{
type : 'text' ,
width : 200 ,
cancel : 'Cancel' ,
indicator : 'Saving...' ,
onblur : 'ignore' ,
submit : 'OK' ,
tooltip : 'Click to edit...'
}
) ;
}
editableInit ( ) ;
jQuery ( '.paginate_button' ) . live ( 'click' , function ( ) {
editableInit ( ) ;
} ) ;
jQuery ( '.dataTables_length select' ) . live ( 'change' , function ( ) {
editableInit ( ) ;
} ) ;
Categories: How-To's , Technology Tags: click , DataTables , Editable , Event , howto , jEditable , JQuery , Page , Pagination , tips
| 2 comments
Author:
erics , May 23rd, 2012
$ ( '.dataTables_length select' ) . live ( 'change' , function ( ) {
alert ( this . value ) ;
} ) ;
Categories: How-To's , Technology Tags: Callback , DataTables , Event , Hook , howto , JQuery , Page , Page size , Pagination , Show , tips
| No comments