Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1097086
    hadorii
    Participant

    http://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!

    #1097160
    Rahul
    Moderator

    Hey 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!

    #1098346
    hadorii
    Participant

    Thanks 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.

    #1098390
    Lely
    Moderator

    Hi 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 / password

    Don’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.

  • <script> jQuery(function($){ $("#no-reply-1097086 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>