• I have some white space on the front page of my website https://www.pointshavingfordummies.com that I am trying to fill. I have added a widget into the functions.php file, but I can’t find how to make it appear on the homepage. Can’t I just add it into the style.css? I’ve tried a few things but to no avail.

Viewing 4 replies - 1 through 4 (of 4 total)
  • try this CSS
    #slider {
    border: 10px groove red;
    float: none;
    margin: 0 auto;
    padding: 0;
    position: relative;
    right: auto;
    width: 75%;
    }

    Thanks

    Thread Starter johnbriese

    (@johnbriese)

    I appreciate the help. I put that in there, but it doesn’t alter anything because I’ve got the slider where I want it. What I’m trying to do is add a widget to the right side where the blank space is. I would like to have something like recent posts, user profiles, etc… there to fill the space. The slider used to be full screen, but I thought it was too big. Now I have to find something to do with that leftover space.

    After creating widget, you need to add code next to slider to call widget in index.php file..!!!

    thnx

    Thread Starter johnbriese

    (@johnbriese)

    I’m sorry, my coding skills are not very extensive. I knew I had to call the widget somewhere, but I can’t figure out exactly where to put it. I previously looked in the index.php and couldn’t exactly see where it would go. This is the code from the index file:

    <div class="content-area">
            <div class="middle-align content_sidebar">
                <div class="site-main" id="sitemain">
    				<?php
                    if ( have_posts() ) :
                        // Start the Loop.
                        while ( have_posts() ) : the_post();
                            /*
                             * Include the post format-specific template for the content. If you want to
                             * use this in a child theme, then include a file called called content-___.php
                             * (where ___ is the post format) and that will be used instead.
                             */
                            get_template_part( 'content', get_post_format() );
    
                        endwhile;
                        // Previous/next post navigation.
                        precious_pagination();
    
                    else :
                        // If no content, include the "No posts found" template.
                         get_template_part( 'no-results', 'index' );
    
                    endif;
                    ?>
                </div>
                <?php get_sidebar();?>
                <div class="clear"></div>
            </div>
        </div>

    After that it goes into all of the customizable options. Do I call for it somewhere in here? I’ve looked for the specific slider code in a bunch of other php files, but I can’t find it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Move a widget location’ is closed to new replies.