Celebrating 7 Years! Get up to $30 off GeneratePress Premium!

[Resolved] Related posts, excluding Tags and more. :)

Home Forums Support [Resolved] Related posts, excluding Tags and more. :)

Home Forums Support Related posts, excluding Tags and more. :)

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #448295
    Swadhin

    Hi Tom,

    I am sorry I am throwing a list of issues, I am just switching and am facing these issues on the staged site. Could you please help. The 2nd question is the most crucial one πŸ™‚

    1) How do I display related posts on the generatepress theme? I’d prefer a code but if a plugin is what we have to use then what do you suggest?

    2) How to disable showing some categories or tags (I am okay with anyone setting too) from the blog archives.

    3) How to center align the read more button on blog archives like this blog (https://backlinko.com/blog)

    4) How to remove the link to the author in the blogpost/archives. (The author name stays only the hyperlink is removed)

    5) How to center align the captions to images. They are left aligned by default which doesn’t look good.

    Thanks so much for the help πŸ™‚

    GeneratePress 2.0
    #448697
    Leo
    Staff
    Customer Support

    Hi there,

    1) A plugin is needed. Maybe an article like this might help: http://www.wpbeginner.com/plugins/5-best-related-posts-plugins-for-wordpress/

    I usually go by plugin review ratings when I look for plugins on WordPress repo. They are usually quite good.

    2) The settings are in here: https://docs.generatepress.com/article/blog-content-layout/#archives

    3) Try this CSS:

    .read-more-container {
        text-align: center;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    4) https://generatepress.com/forums/topic/disabling-linking-to-authors-posts/#post-110297

    5) Try this CSS:

    figcaption.wp-caption-text {
        text-align: center;
    }

    Can you provide a link to your site if the CSS doesn’t work?

    #451478
    Swadhin

    HI Leo,

    Thanks a ton for the answers. Here are my responses.

    1) Okay. I’ll do that
    2) That seems greek to me. Is there an easy way or in anyway can you do that for me? I am a novice in touching theme files
    3)The CSS only aligned the button to the center. If you view the link I gave you again, you’ll see the button is spread horizontally across the content container.
    4) Again hard, but I think I can try doing it. I’ll let you know. (Leo, will these changes I make go away when I update the theme in future?)
    5) Awesome! It fixed the issue.

    Thanks. πŸ™‚

    May I know any resources you have to design sites, and a page where you have all your codes and plugins and child themes listed? Like recently, I came to know about WP SHow Posts plugins, I’d never know about it had I missed a FB status of a friend who loved it. So please make it easier to find your resources. πŸ™‚

    #451528
    Leo
    Staff
    Customer Support

    2) Should be easy enough to do it by yourself following the documentation page. They are just check boxes.

    3) This should do:

    .read-more-container a {
        display: block;
    }

    4) Not if you use one of Tom’s methods to add PHP.

    There are too much custom code to list them out. Our documentation pages are very up to date and is definitely the best place to learn GP.

    You can find all of Tom’s child themes and plugins here: https://tomusborne.com/

    #451792
    Swadhin

    Hi Leo,
    Thanks so much for the timely help. I will try out the other things and reach out to you if I need your help.

    For now, the button became exactly as I need, but the “read more” text is still in the left aligned position. What should I do to place the text in the center? It would be very kind of you if you can also let me know how to add a border radius of 2 px so the corners don’t look so sharp. Thanks again. πŸ™‚

    Thanks for the resources. πŸ™‚

    #451795
    Leo
    Staff
    Customer Support

    Hmm the read more should be center with both CSS I’ve provided.

    If not can you link me to the page in question?

    Thanks!

    #451796
    Swadhin

    Here is the link to the image Leo. https://imgur.com/a/SMLNH

    #451800
    Leo
    Staff
    Customer Support

    Image doesn’t really help.

    CSS in #3 here should’ve centered the text: https://generatepress.com/forums/topic/tom-need-your-help-here/#post-448697

    I’ll need to see the page to see why it isn’t working.

    #451813
    Swadhin

    Hi Leo, I added this code and it worked. I had removed the code you provided earlier to add the most recent one you provided and hence the text-align: center; code was missing I guess.

    .read-more-container a {
    text-align: center;
    display: block;
    }

    Leo, what code should I place to make my buttons (globally) have a radius of 2px in corners so they don’t look pointed?

    P.S. Is there any way generatepress supports having a CTA button on the menu?

    #452043
    Leo
    Staff
    Customer Support

    For all the buttons?

    You’d need:

    .button {
        border-radius: 2px;
    }

    Buttons in menu: https://docs.generatepress.com/article/adding-buttons-navigation/

    We have lots of good stuff in documentation page πŸ™‚

    #452195
    Swadhin

    OMG! I’m lovin it Leo. Thanks. I will now devour each page of the documentation (those that are not too technical :P)

    Thanks and have a great week ahead. πŸ™‚

    #452384
    Leo
    Staff
    Customer Support

    No problem πŸ™‚

    You as well!

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.