- This topic has 18 replies, 2 voices, and was last updated 7 years, 11 months ago by Tom.
-
AuthorPosts
-
June 1, 2016 at 10:01 am #198609Elio MartinezJune 1, 2016 at 2:17 pm #198692TomLead DeveloperLead 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; }
June 1, 2016 at 2:19 pm #198693Elio MartinezHi 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.
June 1, 2016 at 2:21 pm #198694TomLead DeveloperLead DeveloperAh, 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/
June 1, 2016 at 2:40 pm #198698Elio MartinezTom,
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.
June 1, 2016 at 2:47 pm #198700TomLead DeveloperLead DeveloperYou 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/
June 1, 2016 at 2:50 pm #198701Elio Martinez1. 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.
June 1, 2016 at 2:51 pm #198702TomLead DeveloperLead DeveloperYour 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.
June 1, 2016 at 2:55 pm #198703Elio MartinezTom, if I paste that code at the end of my actual custom functions.php the site goes down:
June 1, 2016 at 2:57 pm #198705TomLead DeveloperLead DeveloperI’m testing it on my localhost right now with no issues.
Can I see a screenshot of your functions.php with the code added?
June 1, 2016 at 2:59 pm #198706Elio MartinezJune 1, 2016 at 3:00 pm #198707TomLead DeveloperLead DeveloperSomehow your copy and paste brought over some funky characters. Replace the
Ɔ
parts with a single quotation like the code shows above.June 1, 2016 at 3:07 pm #198710Elio MartinezSolved.
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; } }
June 1, 2016 at 3:09 pm #198711TomLead DeveloperLead DeveloperLooks 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.
June 1, 2016 at 3:13 pm #198713Elio MartinezI 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 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.