Slider on the Left, Sidebar on the Right…How?

Homepage Community Forums Epik Theme Support Slider on the Left, Sidebar on the Right…How?

Tagged: ,

Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #6161
    wisefamily
    Customer

      I want to use the responsive slider, smaller on the left. I want to use one of my sidebars on the right. Just for the front page.

      http://berkeycleanwater.com/test/

      I used this page as an example of what to do.

      http://designsbynickthegeek.com/tutorials/add-widgeted-sidebar

      I’m not sure what to do now. As you can see the slider is still super wide and there is no sidebar.

      Any ideas?

      #6164
      Eric
      Customer

        The site isn’t loading for me. Is that the right link, or is the site temporarily down?


        I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

        #6165
        wisefamily
        Customer

          Hi Eric,

          It’s loading for me but who knows. HostGator was having major issues today.

          #6166
          wisefamily
          Customer

            I just chatted with HostGator support and they are seeing the site fine and say there are no issues currently.

            Maybe it’s cleared up for you?

            #6184
            Eric
            Customer

              It’s pretty much the same answer as the one given here – https://appfinite.com/topic/slider-gallery/#post-3879 ….you would have to create the extra sidebar (if you’re familiar with php/html) and have each widget float next to each other.

              Since this is a customization, we don’t have any shortcut code/snippets, so you would have to add this to your theme manually.


              I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

              #6194
              wisefamily
              Customer

                I did add the extra sidebar on the functions.php file.

                genesis_register_sidebar( array(
                ‘id’ => ‘slider-2’,
                ‘name’ => ‘After Content Ad’,
                ‘description’ => ‘This is a sidebar that goes after the content.’,
                ) );

                I also added this to the stylesheet

                /* Ad Sidebar
                ———————————————————— */

                .after-content-ad {
                clear: both;
                margin: 0 auto;
                width: 728px;
                }

                What else am I missing or did I make a mistake?

                #6200
                Eric
                Customer

                  Did you add the code in your home.php file? You can take a look at the slider code in your home.php file as an example. Once you take a look at it you should be able to get a feel for how it’s setup, and how it works.


                  I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

                  #6208
                  wisefamily
                  Customer

                    Okay – you can sorta see it’s working now.

                    http://berkeycleanwater.com/test/

                    I added the social icons in the new sidebar.

                    However, it’s pushed way too far to the right and for some reason the slider is still
                    too wide. For this test I set the Maximum Slider Width (in pixels): to 520.

                    1. How do I properly set the slider up while having this newly coded sidebar?
                    2. On other pages I now have two sidebars. My normal one and this newly added one which is showing up at the bottom.
                    http://berkeycleanwater.com/test/product-category/berkey-water-filter-systems/

                    Thanks for all your help!

                    #6210
                    wisefamily
                    Customer

                      http://berkeycleanwater.com/test/

                      I think I fixed it by changing the width in the style sheet.

                      How do you think it looks?

                      I guess my #2 question remains.

                      2. On other pages I now have two sidebars. My normal one and this newly added one which is showing up at the bottom.
                      http://berkeycleanwater.com/test/product-category/berkey-water-filter-systems/

                      #6215
                      Eric
                      Customer

                        I don’t see any content in the slider2 widget. Was that what you were trying to achieve?


                        I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

                        #6218
                        Eric
                        Customer

                          Also, you have the slider div and the slider2 div on top of each other and they both don’t have a width defined. take a look at the home.php file’s html (mixed in with the php). You could either define a width for both of those or place both widgets inside the sliderinner part.


                          I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

                          #6223
                          wisefamily
                          Customer

                            Oh, I thought I was supposed to add the new content to the “after content ad” widget area.

                            I just added the search box to the slider2 widget and it’s there but it looks horrible.

                            Okay, are you saying I coded this wrong?

                            /**
                            * Display widget content for “slider” and “welcome” sections.
                            *
                            */
                            function epik_home_loop_helper_top() {

                            genesis_widget_area( ‘slider’, array(
                            ‘before’ => ‘<div id=”slider”><div class=”slider-inner”>’,
                            ‘after’ => ‘</div></div>’,
                            ) );

                            genesis_widget_area( ‘slider-2’, array(
                            ‘before’ => ‘<div id=”slider-2″><div class=”After Content Ad”>’,
                            ‘after’ => ‘</div></div>’,
                            ) );

                            }

                            I’m not sure where to define the width. In the style.css file?

                            #6227
                            Eric
                            Customer

                              You would define/add a width in your css. That’s why it doesn’t look right since there is no styling for it just yet. Look at the code and visualize what it looks like so you can know where to add your styling.


                              I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

                              #6231
                              wisefamily
                              Customer

                                I’m getting nowhere with this.

                                Now all of a sudden I have this error.

                                Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home2/berkeycl/public_html/test/wp-content/themes/epik/functions.php on line 226

                                There is no line 226.

                                #6236
                                Eric
                                Customer

                                  Yeah that means there is an error in your php code somewhere. Since it could be anything, anywhere, I have no idea what it is exactly. If you can, try and undo whatever code you’ve added and see if that fixes it. Then you can see exactly whatever the issue is.

                                  I assume you’re using FTP to do all of this right? If so, disregard the following……If not, I would highly recommend you do just in case you make a mistake. If you use the WP editor and make a php error, you’ll get a white screen with the error, and your entire site will go down until you fix it. If you use FTP all you would have to do is “undo” whatever mistake you made and the site would return back to normal.


                                  I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

                                  #6528
                                  wisefamily
                                  Customer

                                    ***Let me start over please***

                                    1. On the homepage I want the slider I have up there now on the left like it is minus moving it more to the right.

                                    2. I want a custom sidebar on the right. I want to use the exact same sidebar I have in the Primary Sidebar.

                                    I’m starting over from scratch.

                                    Here’s is what I’ve done followed by my questions.

                                    1. I added this code to the functions.php page to register the sidebar. I can now see this registered sidebar when I go to my widgets page.

                                    genesis_register_sidebar( array(

                                    ‘id’ => ‘slider-2’,

                                    ‘name’ => __( ‘Slider Left Sidebar Right’, ‘epik’ ),

                                    ‘description’ => __( ‘This is the slider section of the homepage.’, ‘epik’ ),

                                    ) );

                                    2. I added this code to the home.php page

                                    genesis_widget_area ( ‘slider-2’, array(

                                    ‘before’ => ‘<div id=”slider-2″><div class=”slider-left-sidebar-right:>’,

                                    ‘after’ => ‘</div></div)’,

                                    ) );

                                    4. Here is the style I’m using

                                    .slider-left-sidebar-right {

                                    border-bottom: 1px solid #ccc;
                                    margin: 0 auto;
                                    clear: both;
                                    width: 320px;
                                    float: right;
                                    }

                                    If you look at the homepage it obviously doesn’t look right. The sidebar is present but below the slider to the right.

                                    http://berkeycleanwater.com/test/

                                    1. Looking at the code I’m using can you please tell me what I’m doing wrong or how I can fix it to display what I want correctly?

                                    #6530
                                    Eric
                                    Customer

                                      It looks like you’ve added everything correctly, but you’ll need to add both slider areas inside of the same div in your home.php file and add a width. They both have no width defined which makes them fullwidth by default, which is why they are stacked on top of each other.

                                      Just use something like

                                      echo '<div class="example">';
                                      
                                      Your slider widget code
                                      
                                      Your slider 2 widget code
                                      
                                      echo '</div>';

                                      You’ll of course have to play around with the width of the div and then the width of both the slider areas. You’ll have to create some css for the div that contains both the widgets.


                                      I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

                                      #6532
                                      wisefamily
                                      Customer

                                        Thank you Eric. I think we’re getting closer. I’m doing my very best to learn this coding.

                                        Here’s what I did to the home.php page. I added the div class to both and used the one already existing called, “slider-innner” which has a width defined in the style.css page as 720px. I chose that width because it’s what I defined in the Genesis Responsive Slider settings.

                                        echo ‘<div class=”slider-inner”>’;
                                        genesis_widget_area( ‘slider’, array(

                                        ‘before’ => ‘<div id=”slider”><div class=”slider-inner”>’,

                                        ‘after’ => ‘</div></div>’,

                                        ) );

                                        genesis_widget_area( ‘slider-2’, array(

                                        ‘before’ => ‘<div id=”slider-2″><div class=”slider-left-sidebar-right”>’,

                                        ‘after’ => ‘</div></div>’,

                                        ) );
                                        echo ‘</div>’;

                                        }

                                        Here is the css for slider-inner:

                                        .slider-inner {
                                        float: left;
                                        margin: 0 auto !important;
                                        overflow: hidden;
                                        padding: 0 0 40px !important;
                                        width: 720px;
                                        }

                                        When you say play around with “the width of both the slider areas” I’m not sure where that is.

                                        After making these changes the sidebar went directly underneath the slider. I did have the slider sorta on the right.

                                        Thanks again. I really appreciate you making me try and learn this instead of just telling me.

                                        #8584
                                        Mike
                                        Customer

                                          Hi Eric & Wisefamily

                                          Perhaps you’ll know this answer and thanks in advance for any prompt help 😉

                                          On my homepage… http://www.mikemetcalfe.co

                                          In the ‘Slider’ widget section (or at least the first widget below the header) I want to create:

                                          a widget for the left side, 65%

                                          a widget for the right side 35%

                                          I’ve tried the steps I listed here: https://appfinite.com/topic/how-to-change-width-of-epik-home-feature-widgets/

                                          But that doesn’t work. Any ideas? Thanks!

                                          #8587
                                          Mike
                                          Customer

                                            Problem solved guys – lots of experimenting. Thanks!

                                          Viewing 20 posts - 1 through 20 (of 20 total)
                                          • The topic ‘Slider on the Left, Sidebar on the Right…How?’ is closed to new replies.