Skip to:
Content
Pages
Categories
Search
Top
Bottom

an easy New Topic button


  • mth75
    Participant

    @mth75

    Hi all,

    I added an easy New Topic button (after reading a lot of other possible solutions):

    New Topic button

    Add to your loop-topics.php template (before the actual loop):

    <?php if (!is_user_logged_in() ) :?>
    <?php else : ?>
    <div class="new-topic">
    	<input type="submit" name="submit" value="New Topic"  onclick="location.href='#new-post';">
    </div>
    <?php endif; ?>

    Add some css for styling when needed:

    .new-topic {  
    	position: relative;
    	z-index:1;
    	float: right;
    }

    Regards,

    Marc

  • You must be logged in to reply to this topic.
Skip to toolbar