bennettscience
Forum Replies Created
-
Forum: Plugins
In reply to: [Clean Login] Additional validationIt’s okay.
I copied the base plugin and added some regex checks in the logic. Because I was in a time crunch, I didn’t modify the settings page and hardcoded for our purposes.
Do you have a git repo? I’d be happy to get a general setting in there quick to allow people to set a domain for whitelisting and submit a pull request.
Forum: Plugins
In reply to: [Clean Login] Password resetsI think the main confusion is that sometimes, and I can’t find a pattern, the automatic login fails and the user sees the login screen again. Is there a setting I should check?
Forum: Plugins
In reply to: [Clean Login] Additional validationWe worked out a solution that did not require modifying the plugin.
Forum: Themes and Templates
In reply to: [Monograph] Scrolling in the GutenbergThe only reason I thought the theme might be involved is because I run several WP sites, all on the latest release, and the site with Monograph installed is the only one having scroll issues. Are you able to reproduce the issue at all?
Forum: Themes and Templates
In reply to: [Monograph] Scrolling in the GutenbergYeah, it’s hard to explain. If the content editor is taller than the window, I cannot scroll inside the editor. I have to move over to the block settings in order to scroll the page.
Here’s a short video (sorry about the weird green bar on the right).
I’ve disabled all the plugins with no change. This doesn’t happen on a different site I manage which is using a different theme, which led me here.
- This reply was modified 5 years, 8 months ago by bennettscience.
Forum: Hacks
In reply to: Posting featured image to background with PHP?I just got it. @alchymyth was right…I was calling the wrong CSS. Thanks, both, for your help. I really appreciate it!
Forum: Hacks
In reply to: Posting featured image to background with PHP?Ok, tried that, tried adding new featured images, still isn’t working. Here’s my header code:
<!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <title><?php hybrid_document_title(); ?></title> <link rel="stylesheet" href="<?php echo get_stylesheet_uri(); ?>" type="text/css" media="all" /> <?php if (has_post_thumbnail()) { //if a thumbnail has been set $imgID = get_post_thumbnail_id($post->ID); //get the id of the featured image $featuredImage = wp_get_attachment_image_src($imgID, 'full' );//get the url of the featured image (returns an array) $imgURL = $featuredImage[0]; //get the url of the image out of the array ?> <style type="text/css"> .header-image { border:none; color:black; background-image:url('<?php echo $imgURL ?>'); } </style> <?php }//end if ?> <link rel="profile" href="https://gmpg.org/xfn/11" /> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> <?php wp_head(); // wp_head ?> </head> <body class="<?php hybrid_body_class(); ?>"> <?php do_atomic( 'open_body' ); // good_open_body ?> <div id="container"> <?php do_atomic( 'before_header' ); // good_before_header ?> <div id="header"> <?php do_atomic( 'open_header' ); // good_open_header ?> <div class="wrap"> <div id="branding"> <?php hybrid_site_title(); ?> </div><!-- #branding --> <?php get_search_form(); // Loads the searchform.php template. ?> <?php get_template_part( 'menu', 'primary' ); // Loads the menu-primary.php template. ?> <?php get_sidebar('header'); // Load the sidebar-header.php template ?> <?php do_atomic( 'header' ); // good_header ?> </div><!-- .wrap --> <?php do_atomic( 'close_header' ); // good_close_header ?> </div><!-- #header --> <?php do_atomic( 'after_header' ); // good_after_header ?> <?php do_atomic( 'before_main' ); // good_before_main ?> <div id="main"> <div class="wrap"> <?php do_atomic( 'open_main' ); // good_open_main ?>
Forum: Hacks
In reply to: Posting featured image to background with PHP?Ok, I see what you did in the code, now I need to figure out where to put this. Should it go in the post template where I want it to appear on the page?
In other words, if I want it before the post title, I would need to insert this chunk in the template above the title script?
Thanks for your help,
Forum: Networking WordPress
In reply to: Disable comments/ping backs by default on new blogsYou are the best. Thank you so much for the help!
Forum: Networking WordPress
In reply to: Disable comments/ping backs by default on new blogsOk, forgive me again.
I copied the code and uploaded a file called “comment.php” into my mu-plugins folder and got this error when I went to my page:
Parse error: syntax error, unexpected T_FUNCTION in /home2/brianbe2/public_html/student/wp-content/mu-plugins/comment.php on line 6
I removed the file, and the page loaded fine. Did I do something wrong?
Forum: Networking WordPress
In reply to: Disable comments/ping backs by default on new blogsOk, I remember seeing this one, too. Does this code just need to be a php file in the mu-plugins folder?
I got Akismet working across my entire network after reading more and more about how to hard code it in. I would like to go back and close comments on all posts, though.
Thanks for the help, Andrea.
Forum: Networking WordPress
In reply to: Network Admin Comment ModerationOK, bear with me. I know very little about php or database edits.
By “on the main blog,” do you mean on the login portal page?
This is where the kids go to login, so should I be in that directory in the file manager?
Thanks for the help…
Forum: Networking WordPress
In reply to: Network Admin Comment ModerationDo you know if there is a way to clear all current comments on the network? I don’t have time to go through everything one by one.
Also, I’m thinking about installing reCaptcha to help. Good/bad idea?
Forum: Networking WordPress
In reply to: Disable comments/ping backs by default on new blogsI’d also like help on this, but I’m wondering if I can retroactively do so. The site is already running…is there some way to go through the Network Admin dashboard to change the settings on all user blogs at once?
I found a way to do so using a MySQL database query here, https://www.lancelhoff.com/enable-or-disable-comments-on-all-posts-in-one-step/, but I can’t seem to get it to work for the network install.
Thanks,
Forum: Themes and Templates
In reply to: Fatal Error with Mandigo ThemeOh, never mind. I missed one field. Got it back to the default. Thanks again for the help.