- This topic has 14 replies, 3 voices, and was last updated 4 years, 7 months ago by Tom.
-
AuthorPosts
-
September 5, 2019 at 3:49 pm #1002153Deepa
I have a basic blog roll on the home page and the moment I select show posts in masonry, the home page blanks out.
I attempted inactivating all the plugins and activating one at a time. No luck.
September 5, 2019 at 4:34 pm #1002176TomLead DeveloperLead DeveloperHi there,
Is that only happening in the Customizer? When it happens, are there any errors in the “Console” tab when you right-click + Inspect the page?
September 6, 2019 at 10:56 am #1002787DeepaI have only tried the customizer. Is there another way to try it ? I don’t see any errors in the console when I inspect on Chrome. I don’t have other browsers.
September 6, 2019 at 11:02 am #1002792LeoStaffCustomer SupportCan you send me the dashboard admin access to take a look?
You can send the dashboard access using Account Issue here:
https://generatepress.com/contact/Please include the following information:
β The URL of this topic.
β Login URL.
β Username and password.Please disable all plugins except GP Premium.
Thanks!
September 8, 2019 at 8:01 am #1004081LeoStaffCustomer SupportYou have these functions added in the theme’s
function.php
file:function create_copyright() { $all_posts = get_posts( 'post_status=publish&order=ASC' ); $first_post = $all_posts[0]; $first_date = $first_post->post_date_gmt; _e( 'Copyright © ' ); if ( substr( $first_date, 0, 4 ) == date( 'Y' ) ) { echo date( 'Y' ); } else { echo substr( $first_date, 0, 4 ) . "-" . date( 'Y' ); } echo ' <strong>' . get_bloginfo( 'name' ) . '</strong> '; _e( 'All rights reserved.' ); } add_filter( 'generate_blog_masonry', function( $default ) { if ( is_tag() && 'page' === get_post_type() ) { return 'true'; } return $default; } ); add_filter( 'generate_blog_columns', function( $default ) { if ( is_tag() && 'page' === get_post_type() ) { return true; } return $default; } );
Is the issue fixed if you remove them?
September 8, 2019 at 8:16 am #1004090DeepaI just removed the function and saved it. Went to customizer to check masonry option and still the same issue.
September 8, 2019 at 9:10 am #1004113LeoStaffCustomer SupportI still see this function inside the
function.php
file:
https://www.screencast.com/t/wiE0U1pRgAThat file should look exactly the same as this:
https://github.com/tomusborne/generatepress/blob/master/functions.phpSeptember 8, 2019 at 9:43 am #1004152DeepaHiI don’t see the function anymore. Can you refresh your screen may be ?
September 8, 2019 at 9:47 am #1004154LeoStaffCustomer SupportIt’s definitely still there:
https://www.screencast.com/t/x0SwO1oEXpmSeptember 8, 2019 at 9:59 am #1004166DeepaOK. I removed that function too and matched it with your git file. Exact same code with 97 lines. Still no luck.
September 8, 2019 at 10:23 am #1004177LeoStaffCustomer SupportHave you modified any other theme’s or plugin’s files in any other ways?
September 8, 2019 at 10:31 am #1004185DeepaNo. The only thing I attempted was to add a footer that we reverted. All plugins other than GP are inactive anyway.
September 8, 2019 at 3:12 pm #1004305TomLead DeveloperLead DeveloperHi there,
You’ve removed the
wp_footer()
function from thefooter.php
file: https://github.com/tomusborne/generatepress/blob/2.3.2/footer.php#L61Without that function, no theme or plugin can add javascript to your site.
September 8, 2019 at 4:15 pm #1004349DeepaThanks a lot Tom and Leo. It works.
September 8, 2019 at 4:30 pm #1004355TomLead DeveloperLead DeveloperGlad we could help π
-
AuthorPosts
- You must be logged in to reply to this topic.