Forum Replies Created
-
AuthorPosts
-
July 13, 2016 at 5:53 am in reply to: Setting up a blogroll with custom post types – sort of right, but… #189392David BorrinkParticipant
First, you mention "archive-project.php", is this a new file I create? My template file is "page-project.php". Do I use "archive.php" from the lib/structure folder, copying it into my child theme? Or did you mean the "page-project.php" I have? (My rookie-ness with Genesis is clearly showing here.)
Or if I'm to put it in my functions file, are you saying I just do this:
<?php if ( is_post_type_archive('project')); // Do the Custom Loop remove_action('genesis_loop', 'genesis_do_loop'); add_action( 'genesis_loop', 'ds_custom_loop' ); function ds_custom_loop() { echo '<h1 class="entry-title">' . get_the_title() . '</h1>'; the_content(); //WP Query Start $per_page = 12; $project_args = array( 'post_type' => 'project', 'posts_per_page' => $per_page, 'paged' => get_query_var( 'paged' ) ); $projects = genesis_custom_loop( $project_args ); } endif;
July 12, 2016 at 8:35 pm in reply to: Setting up a blogroll with custom post types – sort of right, but… #189362David BorrinkParticipantHow would that function be used? Do I put that in my template (see first post for the complete template)? Where and how would I use that? I don't recall having a Genesis Column Classes function in my code.
July 12, 2016 at 8:17 pm in reply to: Setting up a blogroll with custom post types – sort of right, but… #189359David BorrinkParticipantI have one CPT. It's called "project". My theme comes with a nice style for the columns in the main blog. The Genesis Grid Loop plug-in does a nice job. I just want the CPT posts to match it. Figuring I had to check "project archives" in the Grid Enabling section of the dashboard would be enough.
July 12, 2016 at 7:34 pm in reply to: Setting up a blogroll with custom post types – sort of right, but… #189354David BorrinkParticipantIn a word... Yes.
I'm not understanding if my CPT plug-ins don't talk with the Genesis Grid Loop plug-in, or what.
June 11, 2016 at 1:26 pm in reply to: Responsive Header image in Media Queries – one size won't show up #187385David BorrinkParticipantWow. I can't believe I missed the dot in front of site-header. Thanks, Victor. I guess I was working too late when I did that. And not a rookie mistake, either.
Problem solved.
May 25, 2016 at 2:47 pm in reply to: WooCommerce Shop full page template – shop page content has no padding #186276David BorrinkParticipantAfter I added some category pages, I discovered that it happens to them, too. Trying a few body class attempts to add padding didn't work, but I did find something that worked.
I modified Victor's suggestion to just the left and right padding amounts:
.full-width-content .content { width: 100%; padding: 40px; }
Then I used the .woocommerce body tag to remove the 60 pixels on the left and right of content entries. That balanced out the display on all pages. This would appear to have solved my problem.
.woocommerce .content .entry { padding-left: 0; padding-right: 0; }
May 24, 2016 at 7:12 pm in reply to: WooCommerce Shop full page template – shop page content has no padding #186226David BorrinkParticipantThanks for the reply, Victor. Your suggestion adds 40px of padding to all sides ... and does it to the product pages as well, which were okay to begin with. So all other pages now have double padding on them.
My request is to know why this is happening to just the main shop page and not to any other pages.
-
AuthorPosts