Problems With WP Bannarize Plugin [closed]

Try to use: Smart Slider / WP Booststrap Gallery Are great plugins for Banner, they are free, responsive and easy to adapt. Here’s an example of using SmartSlider with ShortCode: <section id=”secao-sliders-index”> <div class=”row”> <div class=”col-lg-12 col-xl-12″> <div id=”container”> <?php echo do_shortcode(‘[smartslider3 slider=2]’); ?> </div> </div> </div> <br> <div class=”row”> <div class=”col-lg-12 col-xl-12″> <div id=”container”> … Read more

How to create an option page for this simple plugin

Copy pate this below code in your functions.php file, <?php add_menu_page(‘BAW Plugin Settings’, ‘BAW Settings’, ‘administrator’, __FILE__, ‘baw_settings_page’, get_stylesheet_directory_uri(‘stylesheet_directory’).”/images/media-button-other.gif”); ?> <?php // create custom plugin settings menu add_action(‘admin_menu’, ‘baw_create_menu’); function baw_create_menu() { //create new top-level menu add_menu_page(‘BAW Plugin Settings’, ‘BAW Settings’, ‘administrator’, __FILE__, ‘baw_settings_page’,plugins_url(‘/images/icon.png’, __FILE__)); //call register settings function add_action( ‘admin_init’, ‘register_mysettings’ ); } function … Read more

Banner not visible after plugin publishing

The problem was : I generated images with Illustrator, I got this before saving the image : translation : “Some file names contains caracters no latin. These names won´t be incompativél with servers and Web browsers” The problem was, I copied the name from a Web page and that created a non latin caracter. When … Read more

How do I use wp_editor() in widget form?

I stumbled across this solution a while back; this might be what you are looking for: I added this to my theme’s functions.php file… // First, I created a shortcode for a function, that would typically be inserted in to a template file, so that it could be inserted in to a widget. add_shortcode(‘myshortcode’, ‘myfunction’); … Read more

How to change upload dir for custom plugin?

IN YOUR wp-config.php define(‘MY_’, “https://wordpress.stackexchange.com/”); define(‘MY_DIR’,’ui’); define(‘MY_DIR_PLUGINS’, ‘plugins’); define(‘MY_DIR_CONTENT’, ‘resource’); define(‘MY_DIR_MEDIA’, ‘media’); define(‘MY_PAGE_TYPE’, ‘http://’); if ( !defined(‘ABSPATH’) ) define(‘ABSPATH’, dirname(__FILE__) . MY_. MY_DIR); define(‘WP_HOME’,MY_PAGE_TYPE.$_SERVER[‘HTTP_HOST’]); define(‘WP_SITEURL’,WP_HOME. MY_.MY_DIR); //URL DE CONTENIDO: define(‘WP_CONTENT_URL’,WP_SITEURL.MY_.MY_DIR_CONTENT); define(‘WP_CONTENT_DIR’,realpath(ABSPATH.MY_.MY_DIR_CONTENT)); //CAMBAIR RUTA DE PLIGINS: define( ‘WP_PLUGIN_URL’,WP_SITEURL.MY_.MY_DIR_PLUGINS); define( ‘WP_PLUGIN_DIR’,realpath(ABSPATH.MY_DIR_PLUGINS)); //CAMBIAR RUTA DE SUBIDA define(‘UPLOADS’, ”.MY_DIR_CONTENT.MY_.MY_DIR_MEDIA); /** Sets up WordPress vars and included files. */ require_once(ABSPATH … Read more

add_action does not call the function

Currently it doesn’t seem to exist a filter to manage fields in the menu creation. On the other hand, what you can do is to create a new “menu walker”, to provide WordPress input fields as well as adding your own. That involves the extension of WordPress class Walker_Nav_Menu_Edit with your own code. Since the … Read more

How do I apply style to each category of a list?

I’ve modified your code to reflect the wp_list_categories() function reference as suggested by @Usce. This snippet will create an unordered list, remove the “Categories” list title, and add the li class with individual category ID so you can target each link in the list. function catting ($atts, $content = null) { echo ‘<div id=”cats” class=”catting”>’ … Read more