Title: Adding Plugin Content above my posts
Last modified: August 30, 2016

---

# Adding Plugin Content above my posts

 *  [miked89](https://wordpress.org/support/users/miked89/)
 * (@miked89)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/adding-plugin-content-above-my-posts-1/)
 * Hi,
 * On my site [http://www.gamertime.co.uk](http://www.gamertime.co.uk) , I am looking
   to add a grid of 6 twitch.tv previews, so i can show people streams. I want to
   put this below my featured slider and before my “news section”.
 * How can i impliment this?
 * I am not really sure where to start. I have tried to get images and such in that
   place but have only succeeded in adding text, but i cant remember how.
 * Basically, i would feature twitch streams, once clicked it would open in twitch
   not the site. I would use a plugin to get the streams and an online offline button
   there too. It can go other places, i would just like an idea how much work this
   would be.
 * Thanks in advance

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Tyler Shadick](https://wordpress.org/support/users/tyler-shadick/)
 * (@tyler-shadick)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/adding-plugin-content-above-my-posts-1/#post-6698930)
 * Hey miked89,
 * Are you using Max Mag and is there an option to use Widgets to setup your homepage?
 * [http://home.rc.edu/ejones/insiderc/#widgets](http://home.rc.edu/ejones/insiderc/#widgets)
 * If that’s what you’re using, you’d need to find plugin that creates a widget (
   or a shortcode that you could place in your widget) to output your twitch previews,
   unless you’re using a twitch HTML embed code – then you could just paste the 
   code into a Text Widget and drag it above your news feed.
 * Do you best to make it work without editing any theme or plugin files, if all
   else fails I’d make a Child Theme and manually edit the homepage that way.
 * Again, I haven’t used Max Mag so I’m not sure if this helps at all.
 *  Thread Starter [miked89](https://wordpress.org/support/users/miked89/)
 * (@miked89)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/adding-plugin-content-above-my-posts-1/#post-6698933)
 * Hi Tyler,
 * Thanks for that idea!
 * I am using max-mag, but im not sure on the option to use widgets to setup the
   homepage. Obviously, i can use widgets though i am not sure about rearraging 
   content away from the sidebar.
 * I could hard code the html into my child theme easily enough i think, my problem
   is where to put it and how would i then make sure the css covers the newly added
   stuff.
 * Thanks again!
 *  Thread Starter [miked89](https://wordpress.org/support/users/miked89/)
 * (@miked89)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/adding-plugin-content-above-my-posts-1/#post-6698935)
 * Scrap that, I am using Max-Magazine, slightly different or free version i guess!
 *  [Tyler Shadick](https://wordpress.org/support/users/tyler-shadick/)
 * (@tyler-shadick)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/adding-plugin-content-above-my-posts-1/#post-6698954)
 * In your **child theme**, make the following modifications depending on if you’re
   using PHP or HTML. I’d strongly suggest backing up index.php and doing this from
   your web host, invalid PHP _will result in your front-end and back-end breaking_
   until the offending code is removed. If something breaks, undo your changes or
   replace the file with the original.
 * **ONLY USING PHP CODE**
 *     ```
       <?php
       /**
        * The main template file.
        *
        * This is the most generic template file in a WordPress theme
        * and one of the two required files for a theme (the other being style.css).
        * It is used to display a page when nothing more specific matches a query.
        * E.g., it puts together the home page when no home.php file exists.
        * Learn more: http://codex.wordpress.org/Template_Hierarchy
        *
        * @file      index.php
        * @package   max-magazine
        * @author    Sami Ch.
        * @link 	  http://gazpo.com
        */
       ?>
       <?php get_header(); ?>
   
       <d</strong>iv id="content">		
   
       		<?php
       			//show on homepage only
       			if (is_home() && $paged < 2 ){
           //INSERT PHP CODE HERE
       				//include slider
       				if ( max_magazine_get_option( 'show_slider' ) == 1 ) {
       					get_template_part('includes/slider');
       				}
       //More Code below!
       ```
   
 * **ONLY USING HTML CODE**
 *     ```
       <?php
       /**
        * The main template file.
        *
        * This is the most generic template file in a WordPress theme
        * and one of the two required files for a theme (the other being style.css).
        * It is used to display a page when nothing more specific matches a query.
        * E.g., it puts together the home page when no home.php file exists.
        * Learn more: http://codex.wordpress.org/Template_Hierarchy
        *
        * @file      index.php
        * @package   max-magazine
        * @author    Sami Ch.
        * @link 	  http://gazpo.com
        */
       ?>
       <?php get_header(); ?>
   
       <div id="content">		
   
       		<?php
       			//show on homepage only
       			if (is_home() && $paged < 2 ){
       ?>
           //INSERT HTML CODE HERE
       <?php
       				//include slider
       				if ( max_magazine_get_option( 'show_slider' ) == 1 ) {
       					get_template_part('includes/slider');
       				}
       //More Code below!
       ```
   
 *  [Tyler Shadick](https://wordpress.org/support/users/tyler-shadick/)
 * (@tyler-shadick)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/adding-plugin-content-above-my-posts-1/#post-6698955)
 * The easiest way to do make the change may be to copy your Index.php file into
   your child theme folder and then adding the code where I showed you. If it breaks
   the site, delete the file and try again.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Adding Plugin Content above my posts’ is closed to new replies.

## Tags

 * [above](https://wordpress.org/support/topic-tag/above/)
 * [add](https://wordpress.org/support/topic-tag/add/)
 * [content](https://wordpress.org/support/topic-tag/content/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 5 replies
 * 2 participants
 * Last reply from: [Tyler Shadick](https://wordpress.org/support/users/tyler-shadick/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/adding-plugin-content-above-my-posts-1/#post-6698955)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
