lundi 21 décembre 2015

How to add some javascript code under the post in Wordpress

I try to add some javascript code after the content and before the related news links but my javascript code shown after the related news.

I try to this with add my code here : themes\themes_name\content_single.php :

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
    <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>

    <div class="entry-meta">
        <?php accesspress_basic_posted_on(); ?>
    </div><!-- .entry-meta -->
</header><!-- .entry-header -->
<div class="entry-content">
        <?php the_post_thumbnail(); ?>
    <?php the_content(); ?>
    <?php
        wp_link_pages( array(
            'before' => '<div class="page-links">' . __( 'Pages:', 'accesspress-basic' ),
            'after'  => '</div>',
        ) );
    ?>
</div><!-- .entry-content -->

<div class="ads-baroot ads-desc">
**my Codes here...**
</div>



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire