Is there any way to inject text onto pages?
I would create a separate option that will be called in the template. And i would make an options page also. Here is a TUTORIAL i followed and succeeded in creating my options pages for multiple themes .
I would create a separate option that will be called in the template. And i would make an options page also. Here is a TUTORIAL i followed and succeeded in creating my options pages for multiple themes .
The global $woocommerce can be reached, you just have to write global $woocommerce; before using it. Read this article. You can define your own shortcode, see the documentation. You can copy/paste the code because it’s wrapped in a class so it won’t trigger fatal error due to double declaration. But shortcode do not work that … Read more
Disable the plugin at all and in your function.php add add_action(‘init’, ‘my_mobile_redirect’); function get_first_url_subdir() { return str_replace( str_replace( array(‘http://’, ‘https://’), ”, get_site_url() ), ”, $_SERVER[‘SERVER_NAME’] . $_SERVER[‘REQUEST_URI’]); } function redirect_mobile_with_cookie() { $cookiename=”redirect_mobile_is_a_mobile_device”; if ( isset($_COOKIE[$cookiename]) && ($_COOKIE[$cookiename] == ‘yes’) && strpos(get_first_url_subdir(), ‘/mobile’) !== 0) return true; return false; } function my_mobile_redirect(){ if ( redirect_mobile_with_cookie() ) … Read more
Last action you can do… add_action(‘shutdown’, ‘before_the_end_of_world’); function before_the_end_of_world() { die(‘I will miss you, wordpress’); }
Firstly, remove the margin-left CSS property from your html and then try if it works. May be your html is being hidden behind any other html. Or better try this first – Remove the current code from your function and just write any non html thing. Then put a die() or exit() and see if … Read more
I believe @JMau is referring to the following: The actual image is only 211px wide, it displays at 281px wide, therefore pixelation is occurring. The bigger issue here is that the little thumbnail image displaying to the left of the main product image is throwing the alignment off. Add the following to your custom CSS … Read more
You’d need to create the top-level menu page, and then the sub-menu after that. Here’s an example: function my_menu() { add_menu_page ( ‘MVC Events’, // $page_title ‘MVC Events’, // $menu_title ‘manage_options’, // $capability ‘mvc-events’, // $menu_slug ‘mvc-options’ // $function ); add_submenu_page ( ‘mvc-events’, // $parent_slug ‘ATB Event Options’, // $page_title ‘ATB Event Options’, // $menu_title … Read more
If this text was static, then of course you could use custom footer template. So create file footer-my-custom.php and then include it with get_footer(‘footer’, ‘my-custom’); If you want to edit this text in wp-admin (or have many editable texts in there) you can use one of these solutions: 1. Custom Fields (good if you use … Read more
Try use this action instead <?php add_action(“comment_form”, “append_notice”); function append_notice($post_id) { ?><p>Here is a notice</p><?php } ?>
Since the myEventOn is a propitiatory plugin its difficult to provide a specific solution. However since your only have an issue on one page your best bet might be to use the Plugin Organizer plugin, which allows you to disable plugins by post type or by URL.