Trouble figuring out how to get my button to submit comment

Try this. You were missing the tags and the “type” attribute for the tag. The php tag at the bottom echo’s the result that was input in the textarea. Read this http://www.w3schools.com/html/html_forms.asp it should help you get started. <div class=”font-wrap”> <div class=”wrapper”> <form action=”” method=”post”> <textarea name=”comment” id=”comment” class=”talk-bubblecomment” tabindex=”4″ placeholder=”Enter comment…”></textarea> <p class=”sign-in”> Post … Read more

Custom shortcode not being included in content paragraph [duplicate]

The ‘contact’ function should return a string instead of echoing. So the above, should look like: function contact() { $contact = get_field(‘contact’,options); return $contact; } add_shortcode(‘contact’, ‘contact’); Shortcodes are written by providing a handler function. Shortcode handlers are broadly similar to WordPress filters: they accept parameters (attributes) and return a result (the shortcode output). See … Read more

Load a Header in wordpress

You’re really close – get_header_image() returns the URL of the image, whereas header_image() echo’s out the URL. Because you’re setting your style tag in a variable and then echo’ing that, you need to use the function that returns the header image URL – so, like this: $banner=”style=”background-image:url(“. get_header_image() .’);”‘; Using header_image() will, as you found, … Read more

is_plugin_active() not defined on active plugin, in the thumbnails.php file

You can try this, it works for me 🙂 // We need plugin.php! require_once( ABSPATH . ‘wp-admin/includes/plugin.php’ ); $plugins = get_plugins(); foreach ($plugins as $key => $value) { if ( $value[‘Name’] == ‘Aest Plugins’ ) { // <– name plugin validate if( is_plugin_active( $key ) ){ echo “plugin {$value[‘Name’]} is active”; }else{ echo “plugin {$value[‘Name’]} … Read more

How to tweak a plugin without preventing it from updating

Create a plugin that dequeues the javascript you don’t want, and enqueues the edited javascript. <?php /** * Plugin Name: Stackexchange Sample * Author: Nathan Johnson * Licence: GPL2+ * Licence URI: https://www.gnu.org/licenses/gpl-2.0.en.html * Domain Path: /languages * Text Domain: stackexchange-sample */ //* Don’t access this file directly defined( ‘ABSPATH’ ) or die(); add_action( ‘wp_enqueue_scripts’, … Read more

How to overwrite ‘read more” text for artmag theme

To change the text of the “Read More” link, you simply need to hook into the_content_more_link at a higher priority. You can add this to your child theme functions.php file and it should replace the “Read More” text with “Your Preferred Link Text”. add_filter( ‘the_content_more_link’, ‘wpse_260911_more_link’, 11, 2 ); function wpse_260911_more_link( $more_link, $not_used ) { … Read more

Show stuff everywhere except single post?

The is_single is WordPress function so you should add parentheses after it as displayed in the following correct code. <?php if ( ! is_single() ){ ?> <meta property=”og:image” content=”<?php echo get_template_directory_uri(); ?>/images/image.png”/> <?php } ?>

My title is showing after the shortcode

You needs to change buffer like this: <?php function shortcode_callback() { ob_start(); //my code here return ob_get_clean(); } add_shortcode(‘shortcode’, ‘shortcode_callback’); ?> Please check after replace ob_get_clean(); in your code with return ob_get_clean(); then it’s working fine.