Site logo

Archived topic

New links with the new update

18 replies · Started by Elio Martinez on June 1, 2016

Viewing posts 1–15 of 19

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

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;
}

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.

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/

Tom,

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

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.

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.

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

Error

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?

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

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;
}
}

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.

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 :)

This archived topic is closed to new replies.