WordPress.org

Ready to get started?Download WordPress

Forums

Graphene Theme - Adding Meteor slides with page title (14 posts)

  1. Zappa365
    Member
    Posted 3 years ago #

    Hi, is there any way to add my slider onto the top page without the page titles etc?

    I'm working on a site here:

    http://allgonep.fu8.com/

    I have added the slider in but it has been placed under a post.

    could i put it on the page without the need for posting titles etc?

    any help greatly appreciated.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    Try adding the slider to the relevant template file in your theme.

  3. Zappa365
    Member
    Posted 3 years ago #

    I only want it to appear on my front page, which is a custom one which collects all news articles.

    If edited the template file wouldn't it appear on every page?

  4. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    You need to determine which template file is being used for your site's front page. It should be index.php.

  5. Zappa365
    Member
    Posted 3 years ago #

    I thought the index page in WP was just a generic file to load the header etc?

  6. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    I meant the index.php file in your theme.

  7. Zappa365
    Member
    Posted 3 years ago #

    I will search when I get home.
    Because my front page is a custom page it is not likely to be index I don't think, as I am not using the front page that the theme came with.

    Confusing :/

  8. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    Does your site use a static front page? If so, it will be using page.php or whatever custom template you applied to the home page. If not, it should be using index.php.

  9. Zappa365
    Member
    Posted 3 years ago #

    Hi,

    No it is a page that pulls in all the news articles from every category.

    I set it up from the custom menus feature.

  10. Zappa365
    Member
    Posted 3 years ago #

    <?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
     *
     * @package WordPress
     * @subpackage Graphene
     * @since Graphene 1.0
     */
    
    get_header(); ?>
    
    	<?php
        /* Run the loop to output the posts.
         * If you want to overload this in a child theme then include a file
         * called loop-index.php and that will be used instead.
         */
         get_template_part('loop', 'index');
        ?>
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Thats what my index.php file looks like within the graphene theme.

    I copied the code to run the slideshow but it didnt do anything.

    I dont think this file is looking at the the front page?

  11. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    Try looking in loop.php or loop-index.php

  12. Zappa365
    Member
    Posted 3 years ago #

    Thanks for you replies thuis far, keeping me sane!

    I only have loop.php and loop-author.php in the teomplate directory.

    I dont think its author after looking.

    Loop.php looks like this:

    [Code moderated as per the Forum Rules. Please use the pastebin]

  13. Zappa365
    Member
    Posted 3 years ago #

    I put it in the slider html code at the very top of this file and it put the slider on every page, not what I need but it is certainly closer to what I need for the homepage.

  14. SunnySan
    Member
    Posted 2 years ago #

    Hi, I have the same problem. I am also using the Graphene theme and the slideshow is showing on every page (I only need it on the frontpage)...Did you already find a solution?

Topic Closed

This topic has been closed to new replies.

About this Topic