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
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.
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!
Scrap that, I am using Max-Magazine, slightly different or free version i guess!
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!
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.