Unless noted otherwise, place these snippets in your theme’s functions.php
file or site-specific plugin
Add the goolemap shortcode back
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // DO NOT include the opening php tag | |
add_filter( 'arconix_shortcodes_list', 'add_gmap' ); | |
function add_gmap( $list ) { | |
$list[] = 'googlemap'; | |
return $list; | |
} |
Remove the Shortcode List metabox from display
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // DO NOT include the opening php tag | |
// Remove Shortcodes Metabox from all post types | |
add_filter( 'arconix_shortcodes_meta_box_post_types', '__return_empty_array' ); |
Change the default box style
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // DO NOT include the opening php tag | |
add_filter( 'arconix_box_shortcode_args', 'my_box_args' ); | |
function my_box_args( $defaults ) { | |
$defaults['color'] = 'blue'; | |
return $defaults; | |
} |
Change the default button color and size
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // DO NOT include the opening php tag | |
add_filter( 'arconix_button_shortcode_args', 'my_button_args' ); | |
function my_button_args( $defaults ) { | |
$defaults['color'] = 'green'; | |
$defaults['size'] = 'large'; | |
return $defaults; | |
} |
Change the jQuery Tools script url and version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // DO NOT include the opening php tag | |
add_filter( 'arconix_jquerytools_reg', 'my_jquerytools_reg' ); | |
function my_jquerytools_reg( $args ) { | |
$args['url'] = 'http://cdn.jquerytools.org/1.2.6/tiny/jquery.tools.min.js'; | |
$args['ver'] = '1.2.6'; | |
return $args; | |
} |