WordPress.org

Forums

[resolved] Colorway lite-slider above slider container front page (3 posts)

  1. MariaWeb
    Member
    Posted 1 year ago #

    *I know it's risky to edit the php and I usually use the custom css in the theme option but I didn't know how to make css to put a slider in and couldn't find out how :) *

    hi I've managed to put a slider on my front-page(front-page.php) in the colorway lite theme, yay! but I do have a problem. the slider doesn't go inside the div.slider-container but above it. is there anyway to fix this? the site

    code:

    <?php
    /*
      /**
     * The main front page 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
     *
     */
    ?>
    <?php get_header(); ?>
    <!--Start Slider-->
    <div class="grid_24 slider">
        <div class="slider-container">
            <div id="slides">
                <div id="slide-box">
                    <div class="slides_container col-full slide-fix" >
                        <div class="slide slide-1" >
                            <div class="slide-content entry fl">
                                <?php if (inkthemes_get_option('colorway_slideheading1') != '') { ?>
                                    <h2 class="title"><a>"><?php echo inkthemes_get_option('colorway_slideheading1'); ?></a></h2>
                                <?php } else { ?>
                                    <h2 class="title"><a href="#"><?php _e('Beauty at its best','colorway'); ?></a></h2>
                                <?php } ?>
                                <?php if (inkthemes_get_option('colorway_slidedescription1') != '') { ?>
                                    <p><?php echo inkthemes_get_option('colorway_slidedescription1'); ?></p>
                                <?php } else { ?>
                                    <p><?php _e('What happens when beauty and simplicity connects. We tried to give you a slight hint of that with the Colorway Theme.','colroway'); ?></p>
                                <?php } ?>
                            </div>
                            <!-- /.slide-content -->
    			<a href="http://"><?php do_action('slideshow_deploy', '1379'); ?></a>
                            <!-- /.slide-image -->
                            <div class="fix"></div>
                        </div>
                    </div>
                    <!-- /.slides_container -->
                </div>
                <!-- /#slide-box -->
            </div>
            <!-- /#slides -->
        </div>
    </div>
    <div class="clear"></div>
    <!--End Slider-->
    <!--Start Content Grid-->
    <div class="grid_24 content">
        <div class="content-wrapper">
            <div class="content-info">
                <h1>
                    <center>
                        <?php if (inkthemes_get_option('inkthemes_mainheading') != '') { ?>
                            <?php echo inkthemes_get_option('inkthemes_mainheading'); ?>
                        <?php } else { ?>
                            <?php _e('Your Main Heading Comes Here! Set It From Themes Options Panel','colorway'); ?>
                        <?php } ?>
                    </center>
                </h1>
            </div>
            <div  id="content">
    
                </div>
                <div class="clear"></div>
            </div>
            <?php if (inkthemes_get_option('inkthemes_testimonial') != '') { ?>
    
    <blockquote><?php echo inkthemes_get_option('inkthemes_testimonial'); ?>
    </blockquote>
            <?php } else { ?>
    
    <blockquote><?php _e('Theme from InkThemes.com are based on P3+ Technology, giving high speed, easiness to built & power of SEO for lending trustworthiness and experience to a customer. The Themes are really one of the best we saw everywhere.
                    - Neeraj Agarwal','colorway'); ?>
    </blockquote>
            <?php } ?>
        </div>
    </div>
    <div class="clear"></div>
    <!--End Content Grid-->
    </div>
    <!--End Container Div-->
    <?php get_footer(); ?>

    [Please post code or markup between backticks or use the code button. Or better still - use a pastebin. Your posted code may now have been permanently damaged/corrupted by the forum's parser.]

  2. Andrew
    Nuh uh moderator
    Posted 1 year ago #

    Consider setting up a Child Theme and only modify files within your Child Theme directory.

  3. MariaWeb
    Member
    Posted 1 year ago #

    i figured out the problem but Andrew thanks for the advise. i might just set up a child theme in the future :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags