Hard Boiled Greg

Forum Replies Created

Viewing 15 posts - 76 through 90 (of 107 total)
  • Author
    Posts
  • in reply to: Mocha theme totally widgetize home page #18844

    Hard Boiled Greg
    Participant

    This should remove the sidebars and the content. I quickly tested it and it doesn’t throw up any errors, but I didn’t try it with all of your custom widget code. Feel free to remove anything from your home.php that you added to accomplish the same. Add it right after your opening php tag

    add_action( ‘genesis_meta’, ‘hbg_home_genesis_meta’ );
    /**
     * Removes content loop and forces page to full-width layout.
     *
     */
    function hbg_home_genesis_meta() {
    
    	remove_action( ‘genesis_loop’, ‘genesis_do_loop’ );
    	add_filter( ‘genesis_pre_get_option_site_layout’, ‘__genesis_return_full_width_content’ );
    	
    }

    Website: Hard Boiled Greg Twitter: @hbgreg

    in reply to: Mocha theme totally widgetize home page #18842

    Hard Boiled Greg
    Participant

    Sorry for the delay, I thought I had subscribed to this thread. Typing a reply now.


    Website: Hard Boiled Greg Twitter: @hbgreg

    in reply to: Mocha theme totally widgetize home page #18827

    Hard Boiled Greg
    Participant

    Hi,

    I’d like to help. Just so I can get caught up, are you using a home.php file? If you are, would you mind posting what is in there now?

    Thanks,

    HBG


    Website: Hard Boiled Greg Twitter: @hbgreg

    in reply to: Change Continue Reading text to css button / image #18395

    Hard Boiled Greg
    Participant

    I tested it before I posted it, but I’m glad you got it resolved.

    Take care,

    Greg


    Website: Hard Boiled Greg Twitter: @hbgreg

    in reply to: Changing width of menu buttons #18309

    Hard Boiled Greg
    Participant

    Hello,

    Are you asking how to reduce the width of the menu buttons? You could do this by reducing the padding of the:

    #header . menu a {

    rule in your style sheet.

    But if it was me, I’d move the menu from the header to primary-navigation bar, so it isn’t trying to occupy the same space as your full width header.

    Hard Boiled Greg


    Website: Hard Boiled Greg Twitter: @hbgreg

    in reply to: Changing background in Outreach #18299

    Hard Boiled Greg
    Participant

    Hi,

    The #inner selector, has a background declaration that “covers” the one you set through the appearances tab. The rule in the stylesheet is:

    #inner {
    background: black url(images/inner.png) repeat-x;
    clear: both;
    margin: 0 auto;
    overflow: hidden;
    padding: 30px 0;
    }

    delete the line that says: background: black url(images/inner.png) repeat-x;

    Let me know how you make out.

    Hard Boiled Greg


    Website: Hard Boiled Greg Twitter: @hbgreg

    in reply to: Minimum 2 100% on homepage only? #18295

    Hard Boiled Greg
    Participant

    Try adding the body class of .home before .wrap ie:

    .home .wrap {
    margin: 0 auto;
    width: 100%;
    }

    Hard Boiled Greg


    Website: Hard Boiled Greg Twitter: @hbgreg

    in reply to: My header logo is jacked up. #18293

    Hard Boiled Greg
    Participant

    Hello,

    You could add:

    width: 960px; to your #header rule.

    Hard Boiled Greg


    Website: Hard Boiled Greg Twitter: @hbgreg

    in reply to: Change Continue Reading text to css button / image #18291

    Hard Boiled Greg
    Participant

    Hi,

    You can add this code to your functions.php file:

    /** Modify the Genesis content limit read more link */
    add_filter( ‘get_the_content_more_link’, ‘custom_read_more_link’ );
    function custom_read_more_link() {
        return ‘… <a class="more-link" href="’ . get_permalink() . ‘"><img src="image-link-here"></a>';
    }

    adding the location of your button image to the img src=

    Also the link has a class of “more-link” so your could style it’s background with a CSS gradient for a button effect instead.

    Hard Boiled Greg


    Website: Hard Boiled Greg Twitter: @hbgreg

    in reply to: How do I create a custom width page on the Minimum theme? #18282

    Hard Boiled Greg
    Participant

    Hi,

    You can add:

    .page-template-***** #content {
    	float: none;
    	margin: 0 auto;
    	width: 60%;
    }

    Where .page-template-***** is the body class of your custom page template.

    Hard Boiled Greg


    Website: Hard Boiled Greg Twitter: @hbgreg

    in reply to: Breadcrumbs not enabled but still showing… #18273

    Hard Boiled Greg
    Participant

    Just a complete guess, but could the breadcrumbs be coming from WooCommerce?

    Try adding:

      remove_action( 'woocommerce_before_main_content',
    'woocommerce_breadcrumb', 20, 0);

    to your functions.php file (untested!)

    – Hard Boiled Greg


    Website: Hard Boiled Greg Twitter: @hbgreg

    in reply to: How to make a 2-column archive page #7092

    Hard Boiled Greg
    Participant

    –Extra Post– please delete


    Website: Hard Boiled Greg Twitter: @hbgreg

    in reply to: How to make a 2-column archive page #7086

    Hard Boiled Greg
    Participant

    OK, the Archive template is using the “wp_get_archives” function which apparently doesn’t have an offset, so we’ll have to “get_posts” instead.

    We don’t want to edit the parent theme files so copy the “page_archive.php” file from your genesis folder and paste it into your child theme.  Then replace this section in that file (lets try a pastie) :

    <div class=”archive-page”>

    <h4></h4>
    <ul>

    </ul>

    <h4></h4>
    <ul>

    </ul>

    </div><!– end .archive-page–>

    <div class=”archive-page”>

    <h4></h4>
    <ul>

    </ul>

    <h4></h4>
    <ul>

    </ul>

    <h4></h4>
    <ul>

    </ul>

    </div><!– end .archive-page–>

    With this:

    <div class=”archive-page”>

    <h4></h4>
    <ul>
    <!–?php global $post; $args = array( ‘numberposts’ => 25 );
    $myposts = get_posts( $args );
    foreach( $myposts as $post ) : setup_postdata($post); ?>
    <li><a href=”“></a></li>

    </ul>

    </div><!– end .archive-page–>

    <div class=”archive-page”>

    <h4></h4>
    <ul>
    <!–?php global $post; $args = array( ‘numberposts’ => 25, ‘offset’=> 25 );
    $myposts = get_posts( $args );
    foreach( $myposts as $post ) : setup_postdata($post); ?>
    <li><a href=”“></a></li>

    </ul>
    </div><!– end .archive-page–>

    Let me know how it works out for you.

    HBG


    Website: Hard Boiled Greg Twitter: @hbgreg

    • This reply was modified 2 years, 5 months ago by  Hard Boiled Greg. Reason: pastie didn't work
    • This reply was modified 2 years, 5 months ago by  Hard Boiled Greg.
    • This reply was modified 2 years, 5 months ago by  Hard Boiled Greg.
    • This reply was modified 2 years, 5 months ago by  Hard Boiled Greg. Reason: Good grief we need a better way to paste code
    • This reply was modified 2 years, 5 months ago by  Hard Boiled Greg.
    • This reply was modified 2 years, 5 months ago by  Hard Boiled Greg. Reason: pastie didn't work
    • This reply was modified 2 years, 5 months ago by  Hard Boiled Greg.
    • This reply was modified 2 years, 5 months ago by  Hard Boiled Greg.
    • This reply was modified 2 years, 5 months ago by  Hard Boiled Greg. Reason: Good grief we need a better way to paste code
    • This reply was modified 2 years, 5 months ago by  Hard Boiled Greg.
    in reply to: How to make a 2-column archive page #7079

    Hard Boiled Greg
    Participant

    Thanks for the link DigitalC!  Wrapping a few presents right now; I’ll be back a bit later with some suggestions for you.

    HBG


    Website: Hard Boiled Greg Twitter: @hbgreg

    in reply to: image logo problem #7053

    Hard Boiled Greg
    Participant

    Hi,

    I know it has been a month, but if you are still having a problem with this I’d like to help.

    Please let me know.

    HBG


    Website: Hard Boiled Greg Twitter: @hbgreg

Viewing 15 posts - 76 through 90 (of 107 total)