This file contains hidden or 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 | |
/** | |
* Plugin Name: MotoPress Change Styles Example | |
* Plugin URI: http://www.getmotopress.com/ | |
* Description: This example describes how to add new styles to MotoPress objects | |
* Version: 0.1 | |
* Author: MotoPress Team | |
* Author URI: http://www.getmotopress.com/ | |
* License: GPL2 or later |
This file contains hidden or 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 | |
/** | |
* Plugin Name: MotoPress Vertical Tabs | |
* Plugin URI: http://www.getmotopress.com/ | |
* Description: Add vertical style to Tabs widget | |
* Version: 0.1 | |
* Author: MotoPress Team | |
* Author URI: http://www.getmotopress.com/ | |
* License: GPL2 or later |
This file contains hidden or 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 | |
/** | |
* Plugin Name: MotoPress Custom Layouts | |
* Plugin URI: http://www.getmotopress.com/ | |
* Description: This example describes how to add custom predefined layouts. | |
* Version: 1.0 | |
* Author: MotoPress Team | |
* Author URI: http://www.getmotopress.com/ | |
* License: GPL2 or later |
This file contains hidden or 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 | |
/* | |
Plugin Name: MotoPress PressTicket Fix | |
Plugin URI: http://www.getmotopress.com/ | |
Description: Fixes an issue with PressTicket plugin by Toan Nguyen http://wpoffice.net/contact/. PressTicket plugin adds custom div to each the_content filter call. | |
Version: 1.0 | |
Author: MotoPress | |
Author URI: http://www.getmotopress.com/ | |
*/ |
This file contains hidden or 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 | |
/* | |
Plugin Name: MotoPress Copyright Proof Fix | |
Plugin URI: http://www.getmotopress.com/ | |
Description: Disable Copyright Proof plugin (frustrate_copy.js) in MotoPress visual editor | |
Version: 1.0 | |
Author: MotoPress | |
Author URI: http://www.getmotopress.com/ | |
*/ |
This file contains hidden or 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
// mp_code & mp_text can be hidden only | |
$motopressCELibrary->getObject('mp_code')->setShow(false); | |
$motopressCELibrary->getObject('mp_text')->setShow(false); | |
$motopressCELibrary->removeObject('mp_heading'); | |
$motopressCELibrary->removeObject('mp_image'); | |
$motopressCELibrary->removeObject('mp_grid_gallery'); | |
$motopressCELibrary->removeObject('mp_image_slider'); | |
$motopressCELibrary->removeObject('mp_video'); | |
$motopressCELibrary->removeObject('mp_space'); |
This file contains hidden or 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 | |
/* | |
Plugin Name: MotoPress Nested Shortcodes Example | |
Plugin URI: http://www.getmotopress.com/ | |
Description: Example of the Nested Shortcodes in MotoPress Content Editor plugin | |
Version: 1.0 | |
Author: MotoPress | |
Author URI: http://www.getmotopress.com/ | |
*/ |
This file contains hidden or 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 | |
/* | |
Plugin Name: MotoPress Visual Controls Example | |
Plugin URI: http://www.getmotopress.com/ | |
Description: Example of the visual controls for object | |
Version: 1.0 | |
Author: MotoPress | |
Author URI: http://www.getmotopress.com/ | |
*/ |
This file contains hidden or 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
add_action( 'wp_print_styles', 'my_theme_wp_print_styles' ); | |
function my_theme_wp_print_styles() { | |
if ( is_front_page() ) { | |
wp_dequeue_style('mpce-theme'); | |
wp_dequeue_style('mpce-bootstrap-grid'); | |
wp_dequeue_style('mpce-font-awesome'); | |
} | |
} |
This file contains hidden or 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 | |
/* | |
* Add font with icons to Getwid plugin. | |
* Use this code in functions.php or custom plugin. | |
*/ | |
// add hook | |
add_action( 'getwid/icons-manager/init', 'my_theme_getwid_add_custom_icons' ); |
OlderNewer