• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Agency Pro – Post sizing and side Widgets

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Agency Pro – Post sizing and side Widgets

This topic is: not resolved

Tagged: Agency, css, post, Sidebar, size, widgets

  • This topic has 15 replies, 2 voices, and was last updated 11 years, 11 months ago by Tonya.
Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • September 1, 2014 at 11:20 am #122235
    [email protected]
    Member

    Hi there,

    I am using the Agency Theme.

    (1) Why does the sizing of the post on this page overlap with the sidebar widgets? How can I adjust it so then it doesn't overlap?

    http://www.optimizedwebmedia.com/otw-portfolio/draw-cartoon-photo/

    (2) What's the "Post Navigation" I keep seeing at the bottom of the post? How can I get rid of it?

    Many thanks in advance! 馃檪

    Best,
    Donald

    http://www.optimizedwebmedia.com/otw-portfolio/draw-cartoon-photo/
    September 1, 2014 at 7:56 pm #122312
    Tonya
    Member

    Hi Donalid,

    1) Looking at the HTML structure under .site-inner, you see that the theme has 2 divs encasing the article and sidebar: i.e. .otw-eighteen otw-columns (for the article) and .otw-six otw-columns (for the sidebar). The former is set to 75% while the latter is 25%. Yet the sidebar itself is set to a fixed width of 360px; therefore, it pushes out past the 25% setting.

    I'm not quite sure why your theme is using these .otw responsive stylings, as it could be accomplished using the standard Genesis HTML structure. Regardless, the simple fix is to set the sidebar width to 100%, so that it will fill the .otw-six otw-columns 25% container.

    .sidebar-primary {
    float: right;
    width: 100%; /* was 360px; */
    }

    Upon doing this, you will notice that the sidebar is now quite narrow. To adjust, you will need to alter the column classes for both the article and sidebar.

    2) Following the instructions on this article from Studiopress which provides you with the snippet to add to your functions.php file: Remove Post Navigation snippet.

    Cheers,
    Tonya


    Software & Electrical Engineer and Programming Teacher 路 I’m on a mission to help developers be more awesome.
    Find Me: KnowTheCode.io | @hellofromTonya | Profitable WordPress Developer Bootcamp

    September 1, 2014 at 10:46 pm #122336
    [email protected]
    Member

    Thanks! Now with the sidebar being narrow, how do I alter the column classes for both the article and sidebar?

    Best,
    Donald

    September 1, 2014 at 10:55 pm #122337
    [email protected]
    Member

    I added: the code into my function.php... and now my website doesn't load... it's just a blank...

    I tried deleting the added code back to the original... and it's having problems loading now... please help!

    Donald

    September 1, 2014 at 11:14 pm #122341
    [email protected]
    Member

    I read somewhere that I should replace it with the original functions.php file (from Agency Pro).... where can I find this file to replace it with? I was hoping to use Filezilla.... Which folder location is the functions.php file to replace (with the original)?

    September 1, 2014 at 11:18 pm #122342
    Tonya
    Member

    Donald,

    The functions.php file located in public_html in your servers structure and then wp-content/themes/agency-pro/functions.php.

    You can replace it there.


    Software & Electrical Engineer and Programming Teacher 路 I’m on a mission to help developers be more awesome.
    Find Me: KnowTheCode.io | @hellofromTonya | Profitable WordPress Developer Bootcamp

    September 1, 2014 at 11:24 pm #122343
    [email protected]
    Member

    Ok thanks! Back in business... what a scare... haha

    Now with the sidebar being narrow, how do I alter the column classes for both the article and sidebar?

    Donald

    September 1, 2014 at 11:40 pm #122344
    Tonya
    Member

    Great. This is why I'm not a fan of editing with the WordPress Editor. Editing a copy of the file in question and then transferring it sFTP is a much better way to go (and more safe).

    For the column widths, this will require you to edit your child theme where it has been customized to add .otw classes. As this seems to be a grid-based system, you would want to change .otw-eighteen to .otw-seventh (or even 16) and then adjust the sidebar's up to match. The hard part is finding where these divs and classes are being added into the structure. I start by doing a search in the functions.php file.


    Software & Electrical Engineer and Programming Teacher 路 I’m on a mission to help developers be more awesome.
    Find Me: KnowTheCode.io | @hellofromTonya | Profitable WordPress Developer Bootcamp

    September 1, 2014 at 11:57 pm #122346
    [email protected]
    Member

    Cool - do you have a good tutorial link or video link that shows how to edit the file itself and transferring it to its FTP?

    Donald

    September 2, 2014 at 12:39 am #122349
    [email protected]
    Member

    Also, I noticed that although the sidebar widgets looks better with the posts, on my other pages, the sidebar widgets are now at the bottom, and really wide... how do I fix this?

    http://www.optimizedwebmedia.com/archived/

    Best,
    Donald

    September 2, 2014 at 12:51 am #122350
    Tonya
    Member

    OK, I see. The Draw Cartoon Photo page is a portfolio page; hence, the odd page structure with the otw classes. Therefore, you need to isolate the changes to only the portfolio pages.

    In your style.css, do the following changes:

    line 544: put it back the way it was

    .sidebar-primary {
    float: right;
    width: 360px;
    }

    Then add this after the above code:

    body.single-otw-portfolio .sidebar-primary {
    width: 100%;
    }

    Using the body class, we are targeting only the portfolio page's sidebar.

    For a tutorial, FTP is the way you transfer a file from your computer to the server (like you did with the functions.php). Use the same technique that you did when you reinstalled the functions.php.

    It's nearly 2am here. I'm off to sleep now.

    Cheers,
    Tonya


    Software & Electrical Engineer and Programming Teacher 路 I’m on a mission to help developers be more awesome.
    Find Me: KnowTheCode.io | @hellofromTonya | Profitable WordPress Developer Bootcamp

    September 2, 2014 at 1:22 am #122354
    [email protected]
    Member

    Ok cool~~~

    When you get the chance, can you help me with the "removal of the Post Navigation"?

    Thanks again! Have a good night!

    Donald

    September 2, 2014 at 11:16 am #122432
    Tonya
    Member

    Hello Donald,

    In your functions.php file, you want to insert the following code at the end of the file:

    add_action('genesis_meta', 'lunarwp_remove_post_nav_from_singles');
    /**
     * Remove post navigation from single posts
     *
     * @since  1.0.0
     *
     * @return void
     */
    function lunarwp_remove_post_nav_from_singles() 
    {
        //* Bail out if this is not a single post
        if ( ! is_single()) return;
    
        remove_action('genesis_entry_content', 'genesis_do_post_content_nav', 12);
    }

    If you are uncertain about touching the PHP files, then I'd strongly suggest hiring a freelance developer to help you.

    Cheers,
    Tonya


    Software & Electrical Engineer and Programming Teacher 路 I’m on a mission to help developers be more awesome.
    Find Me: KnowTheCode.io | @hellofromTonya | Profitable WordPress Developer Bootcamp

    September 3, 2014 at 2:27 am #122527
    [email protected]
    Member

    Ah ok... I tried to do the addition into my_functions file as described in this video: https://www.youtube.com/watch?v=Za5YAUMqWvo

    But was unsuccessful... I would like to hire you! What's your email address?

    Best,
    Donald

    September 3, 2014 at 2:38 am #122530
    [email protected]
    Member

    I also tried to set-up the stylesheet customization as in this video but was unsuccessful: https://www.youtube.com/watch?v=EOhH4oSvKn8

    Please let me know the best way to contact you so that I can hire you as my developer, Tonya! 馃檪

    Thanks,
    Donald

    September 3, 2014 at 11:28 am #122614
    Tonya
    Member

    Donald,

    You can reach us via our contact page.

    Cheers,
    Tonya


    Software & Electrical Engineer and Programming Teacher 路 I’m on a mission to help developers be more awesome.
    Find Me: KnowTheCode.io | @hellofromTonya | Profitable WordPress Developer Bootcamp

  • Author
    Posts
Viewing 16 posts - 1 through 16 (of 16 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble