A few Minimum questions.

Community Forums Forums General Discussion A few Minimum questions.

This topic is: not resolved

Tagged: 

This topic contains 9 replies, has 2 voices, and was last updated by  peripatew 1 year, 7 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #8801

    peripatew
    Participant
    Post count: 14

    Upgrading from 1.0 -> 2.0, what do I need to change about my header image to make the menu in the widget area not drop down to the next line?  (If answering this one, what did you do to find the answer?  I used firebug, but couldn’t discern the issue)

    Is there a way to have featured images displayed with the posts on the front page?

    How do I modify the info under the post titles on the front page?  I don’t want it to show how many comments each post has.

    Where do I set the number of posts that’s displayed on the front page?

    How do I actually link to the portfolio page?  I didn’t notice a portfolio template for pages?

    AWESOME THANKS!  My site:  lukemcfadden.com

    • This topic was modified 1 year, 7 months ago by  peripatew. Reason: Added Q about portfolio page
    • This topic was modified 1 year, 7 months ago by  peripatew. Reason: Added Q about portfolio page
    #8882

    peripatew
    Participant
    Post count: 14

    I removed the header image, and enabled the header text, and it matches the demo site now.  But, whenever I try to insert a header image through the wordpress interface, it forces a crop of 1140×100 of whatever I upload.  Even with a small image, it stretches it way out and puts it above the menu..

     

    Thoughts?

    #8896

    Bill Murray
    Participant
    Post count: 575

    Questions, questions….

    1) Header image: Yes, the image will be cropped to the size of 1140 x 100. See the note on Appearance->Header. Therefore, to avoid cropping, upload an image that is exactly that size. It can be a background where you’d use a text logo or a background that includes your logo on the left side (you create the image that way). How to avoid pushing a header menu down? Upload an image of that size, leave it there, post back, and we’ll take a look.

    2) Featured images on home page: See the grid loop in your child theme’s home.php for grid_image_size. The image sizes for this theme might not look good in the grid loop, so you may have to a) define a new image size and b) regenerate thumbnails for this to work. What’s the image size you want to include?

    3) Post info on the home page: Evidently, your comment plugin has taken this over, since I don’t think Genesis is outputting that by default. Your functions.php around line 86 or so has the function that customizes post info. You could try removing the shortcode for comments, because your comments plugin is likely hooking into that.

    4) Posts on front page: For your home page, your best bet is to hard code that as an argument for the grid loop. The setting is posts_per_page. If you’re not familiar with how to adjust that, post back.

    5) Portfolio: The portfolio is a custom post type, not a page, so you can’t set a page template. The portfolio archive is at your domain /portfolio/. You could put that on a menu using the Custom Link option.

    Hope that helps.


    Web: https://wpperform.com or Twitter: @wpperform

    We do managed WordPress hosting.

    #8913

    peripatew
    Participant
    Post count: 14

    Thanks for the response:

     

    1) I uploaded an image that size, here’s what it looks like within the header editor:  http://d.pr/i/h9ky  And here’s what it looks like on the site:  http://d.pr/i/ySpV  But, if I enable the header text in the settings, with the image still there, I get this:  http://d.pr/i/XH0l

    I’ll leave it up with the header image enabled, but the text disabled in case that makes poking at the code easier.

    2) I added an image size, and updated the home.php with an ‘alignleft’ for the images.  I chose 100×100, and looks alright so far, just need to regen the thumbs.  I’ll fiddle with that some more.

    3) I removed the comments bit, but it didn’t remove it from the loop, but, I was able to dig around and remove the reactions from Disqus, so that’s good enough for now.

    4) I’m not familiar, though I noticed posts_per_page within the functions.php, but it’s specific to the portfolio and not the home grid.

    5) Still a little confused by this, the how-to seems rather vague.  I removed the page I had named portfolio, but now I’m getting a 404?

    #8936

    Bill Murray
    Participant
    Post count: 575

    1) In your child theme stylesheet for .header-image #title-area around line 227, set the width to 320px. Why? Because that’s roughly the width of your logo in the header. The old width of the header area + the widget area was too wide, which caused the menu to push down. Unless your server is configured incorrectly, no one can look at the PHP code, only the public-facing HTML & CSS. The pictures of public-facing content are only helpful if you have a glitch and don’t want to leave it that way; that type of picture is only to document the glitch. Beyond that, a link to your site is all you need to provide.

    4) Your home page is controlled by home; it can be influenced by functions.php, but the primary control is not there. In home.php, change your minimum_grid_loop_helper() function from this to have 8 grid loop posts on the home page:

    [php]
    function minimum_grid_loop_helper() {

    if ( function_exists( ‘genesis_grid_loop’ ) ) {
    genesis_grid_loop( array(
    ‘features’ => 0,
    ‘feature_image_size’ => ‘featured’,
    ‘feature_image_class’ => ‘post-image’,
    ‘feature_content_limit’ => 0,
    ‘grid_image_size’ => 0,
    ‘grid_image_class’ => ‘alignnone’,
    ‘grid_content_limit’ => 250,
    ‘more’ => __( ‘[Read more]‘, ‘minimum’ ),
    ) );
    } else {
    genesis_standard_loop();
    }

    }[/php]

    [php]
    function minimum_grid_loop_helper() {

    if ( function_exists( ‘genesis_grid_loop’ ) ) {
    genesis_grid_loop( array(
    ‘features’ => 0,
    ‘feature_image_size’ => ‘featured’,
    ‘feature_image_class’ => ‘post-image’,
    ‘feature_content_limit’ => 0,
    ‘grid_image_size’ => 0,
    ‘grid_image_class’ => ‘alignnone’,
    ‘grid_content_limit’ => 250,
    ‘posts_per_page’ => 8,
    ‘more’ => __( ‘[Read more]‘, ‘minimum’ ),
    ) );
    } else {
    genesis_standard_loop();
    }

    }[/php]

    5) You can’t have 2 items with the same slug. So if you had a portfolio custom post type, your portfolio page would not have a slug of portfolio. It would be something like portfolio-2. Do you have any portfolio CPT’s created yet? If you do, provide a link to one of them, so I can take a look.


    Web: https://wpperform.com or Twitter: @wpperform

    We do managed WordPress hosting.

    #9033

    peripatew
    Participant
    Post count: 14

    1) Check, working fine now.

    4) Done!  Thanks.

    5).  I fiddled with the permalink settings, and that seems to have resolved the issue, though it’s set to what it was originally.  Maybe it needed to be changed and changed back since I upgraded from 1.0.  ?

     

    Thanks for your help.

    #9082

    Bill Murray
    Participant
    Post count: 575

    Re 5) Resaving your permalink setting, even with no change to the setting, performs something called flushing your rewrite rules, which can often fix a problem like this. It’s possible you needed to do this because the 1.0 version of the theme didn’t include a portfolio CPT.


    Web: https://wpperform.com or Twitter: @wpperform

    We do managed WordPress hosting.

    #9112

    peripatew
    Participant
    Post count: 14

    So I’m a little perplexed at the functionality of the portfolio.  I really like the layout, but what benefit is the CPT over a template?  The CPT seems limited in that I can only have one portfolio, whereas a template that could receive a category would allow for multiple portfolios?

    I’d like to create multiple portfolios, just trying to figure out the best approach to do that.

    #9114

    Bill Murray
    Participant
    Post count: 575

    CPT’s and category templates could be 2 approaches to the same problem. If you did a category template, it would only serve 1 category, not multiple. By using a CPT, that takes content outside of the normal post structure and allows the designer to limit what it supports (which can make it easier to create content) and to control how that content is presented. A category template does the 2nd part of that task, but because the content is a post (not a custom post), it uses the typical WP post entry screens. For a true CPT, all the normal post stuff may not be desirable. If you keep all of your content in posts, you then may have to separate that content. For example, in the normal Genesis blog (Genesis->Blog page), you have the option of all categories or any single 1, but not 2 or more. (Yes, a blog page with 2 or more categories can be done, but it’s a little more effort.) A CPT solves that problem, because CPT’s are separate and are not included with your posts. Your perplexed reaction is really due to the fact that the portfolio CPT doesn’t show off all of the bells and whistles of a CPT. If you saw a great example of a CPT, you’d better appreciate their power.

    If you want multiple portfolios, you have a couple of options:

    1) use the portfolio CPT as a model, and add your own CPT (or multiples) for your specific purposes; create whatever templates for each CPT you need; this approach works best when you want this content out of your standard loop;
    2) use posts and categories, and then create category templates to control how each category archive is presented; for this approach, consider creating a “Blog” category, and put any post you want in your blog loop in that category;

    Option #1 is the full control approach, but it’s more work to implement and you may not value its benefits. Option #2 still takes some work, but it’s less work and is probably more suited to your site and the vast majority of general WP blogs. When WP CPT’s became powerful features, a lot of tech writers conveyed the message that even your dog’s blog desperately needed CPT’s. In my opinion, that was way overdone. Categories and category templates work great.


    Web: https://wpperform.com or Twitter: @wpperform

    We do managed WordPress hosting.

    #9116

    peripatew
    Participant
    Post count: 14

    Wow, great reply.  I appreciate your time in helping me with this!  I’m going to populate the portfolio some more and experiment with it.  I’m leaning towards new CPT’s.  On past sites, trying to force regular posts to function as blog posts and portfolio posts was frustrating, but, I’m a lightweight coder.

    Thanks again!

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.