Tagged: x
-
AuthorPosts
-
July 21, 2016 at 9:30 am #1097086
hadoriiParticipanthttp://www.bonnenuitbaby.com/sleep-resources/
1. Is it possible to create a link on the image so that people can click it and access the blog post? (I tried adding a link in the grid box, but it didn’t work).
2. I’d like for these three blog posts to be visible from only this page — and not the blog (post) page — is that possible?
Thanks!
July 21, 2016 at 10:19 am #1097160
RahulModeratorHey There!
1. You can try using the Block Grid so you’ll have the option to customize each block, including adding a link to the image. Kindly reinstall it back and give it one more try.
2. At this time I am not entirely certain what it is you’re trying to do.
If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do. We’d be happy to assist you with everything.Thank you!
July 22, 2016 at 3:41 am #1098346
hadoriiParticipantThanks for the response.
1. I did use the block grid and added a link, but when I published it, it’s only the (unlinked) image. Do you mean I should start over with the block grid and try again?
2. These particular blog posts listed on this page I would prefer NOT to appear on my blog page (http://www.bonnenuitbaby.com/blog/) — is that possible? It might not be.
July 22, 2016 at 4:32 am #1098390
LelyModeratorHi There,
1.)
Would you mind providing us with login credentials so we can take a closer look? The image is outside the link. I tried on my and it is working. See attached screenshot. To do this, you can make a post with the following info:– Link to your site
– WordPress Admin username / passwordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
2.) To do that, on Post > Categories, please add another category like Exclude This Post. Then each of those 3 blog post, assign it to this category. We then exclude this category on the blog post by adding code on the child theme.
Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
Add the following code on your child theme’s functions.php file:
function exclude_category( $query ) { if ( $query->is_home() && $query->is_main_query() ) { $query->set( 'cat', '-1' ); } } add_action( 'pre_get_posts', 'exclude_category' );Change 1 from this line:
$query->set( 'cat', '-1' );to your category ID you have created.Hope this helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1097086 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
