Changing Theme code of Wordpress via Plugin
Tag : php , By : agjimenez
Date : March 29 2020, 07:55 AM
it fixes the issue You will need action hooks in your themes. These hooks allow you to add content where the hooks are locating via a plugin, or a child theme. Thesis and Thematic are WordPress themes with action hooks. Although it's easy to add action hooks to your own theme. do_action('after_comments_form');
add_action('after_comments_form', 'commenting_rules');
function commenting_rules(){
echo "No spam or similar, read our <a href=\"" . bloginfo('url') . "\"/commenting-rules\">Commenting Rules</a>";
}
|
Version control (SVN) of MySQL database in WordPress theme development (any code examples?)
Tag : mysql , By : Harvey
Date : March 29 2020, 07:55 AM
should help you out Main steps: Simplicity. Don't use TortoiseProc, use CLI-client Stability. Don't use Dropbox as repository (or WC) media, select SVN-hosting for your needs Usability. Read about Luqibase as DB-versioning and refactoring engine and start using it, adopt workflow for needed changes
|
scripts not showing in custom wordpress theme
Date : March 29 2020, 07:55 AM
this one helps. So, I've built my own theme for wordpress. Now, I'm trying to put my own plug-in on that theme which requires 3 javascript files. Upon reading the WP-Codex, it tells me the wp_register_script, wp_enqueue_script and add_action methods are the best way to go. , I enqueue my scripts like this on the functions.php file: PHP
|
using revolution slider with the7 theme of wordpress but is not showing images after I have update the plugin
Tag : jquery , By : user185144
Date : March 29 2020, 07:55 AM
wish of those help I am able to figure it out by myself and basically it was conflict of js files of revolution slider with the date-time picker plugin. so i ended up remove datetime picker plugin because I don't really need it much and after that it works. So for you who are reading this you need to check the conflict between the js files you have added and to resolve the conflict initially just change the order of js file.
|
wordpress theme page not showing plugin gallery
Date : March 29 2020, 07:55 AM
this one helps. You're missing the WP loop and the_content(), so its absolutely normal to not see anything between the header and the footer. You need something like this for example: <?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'loop-templates/content', 'page' );//calling the folder with your loop templates ?>
<?php
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
?>
<?php endwhile; // end of the loop. ?>
<article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<header class="entry-header">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
</header><!-- .entry-header -->
<?php echo get_the_post_thumbnail( $post->ID, 'large' ); ?>
<div class="entry-content">
<?php the_content(); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'understrap' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php edit_post_link( __( 'Edit', 'understrap' ), '<span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-## -->
<?php
/**
* The template for displaying pages
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages and that
* other "pages" on your WordPress site will use a different template.
*
* @package nameofpackage
*/
get_header(); ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php the_title(); ?>
<?php the_content(); ?>
<?php endwhile; // end of the loop. ?>
<?php get_footer(); ?>
|