New links with the new update

Home Forums Support New links with the new update

Home Forums Support New links with the new update

Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #198609
    Elio Martinez

    Hi,

    I am having problems with the new update. Now I see links to comments and categories that I don’t want to see in the homepage and links to previous and new posts in the single posts that I dont want to see neither.

    Homepage

    Post

    #198692
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    1. If you have the Blog add-on, you can remove these in “Customize > Blog > Blog Content”.

    2. Try this CSS:

    .post-navigation {
        display: none;
    }
    #198693
    Elio Martinez

    Hi Tom,

    I have the add-on.

    The thing is that if I do one of those two things the links to comments and categories disappear, but I want to keep the links in blue that you can see in the “Home” capture.

    #198694
    Tom
    Lead Developer
    Lead Developer

    Ah, you’ve moved it above the title.

    You’ll want to do this then:

    add_action( 'after_setup_theme','generate_remove_footer_meta' );
    function generate_remove_footer_meta()
    {
        remove_action( 'generate_after_entry_content', 'generate_footer_meta' );
    }

    Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/

    #198698
    Elio Martinez

    Tom,

    I only have to paste that code on the plugin? No more? I did that and the blog went down.

    • This reply was modified 7 years, 11 months ago by Elio Martinez.
    #198700
    Tom
    Lead Developer
    Lead Developer

    You can add it to your child theme functions.php file, or use the Code Snippets plugin, or create a new plugin using Pluginception.

    There’s more info here: https://generatepress.com/knowledgebase/adding-php-functions/

    #198701
    Elio Martinez

    1. Do I have to finish the code with a ; in my custom functions.php or ONLY that code at the end of functions.php?

    2. I still need to remove the category form the bottom on the post, you told me the code to hide the previous and next posts.

    #198702
    Tom
    Lead Developer
    Lead Developer

    Your file should start with <?php, then just add the code.

    Should look like this:

    <?php
    
    add_action( 'after_setup_theme','generate_remove_footer_meta' );
    function generate_remove_footer_meta()
    {
        remove_action( 'generate_after_entry_content', 'generate_footer_meta' );
    }

    This will handle #2 as well.

    #198703
    Elio Martinez

    Tom, if I paste that code at the end of my actual custom functions.php the site goes down:

    Error

    #198705
    Tom
    Lead Developer
    Lead Developer

    I’m testing it on my localhost right now with no issues.

    Can I see a screenshot of your functions.php with the code added?

    #198706
    Elio Martinez
    #198707
    Tom
    Lead Developer
    Lead Developer

    Somehow your copy and paste brought over some funky characters. Replace the &#390; parts with a single quotation like the code shows above.

    #198710
    Elio Martinez

    Solved.

    One more thing: do you know why some times my site does not render well and is showed broken like this?

    Is only some times, but I hate it. For the header banner I have a code the you told me to show responsive banners on mobile and a traditional banner on big screens:

    @media (max-width:768px) {
    .bigscreen {
    display:none;
    width:30%;
    margin: 0 auto;
    }
    }
    @media (min-width:769px) {
    .smallscreen {
    display:none;
    width:100%;
    margin: 0 auto;
    }
    }
    #198711
    Tom
    Lead Developer
    Lead Developer

    Looks like you might have a caching plugin installed that is messing with the stylesheets.

    If you do, look for a “combine only” option in the minify CSS settings.

    #198713
    Elio Martinez

    I have installed WP Super Cache. I am seeking that words that you say in the WP Super Cache settings but I don’t see anything like that. Could you explain more, please.

    Thanks 🙂

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