Title: corenominal's Replies | WordPress.org

---

# corenominal

  [  ](https://wordpress.org/support/users/corenominal/)

 *   [Profile](https://wordpress.org/support/users/corenominal/)
 *   [Topics Started](https://wordpress.org/support/users/corenominal/topics/)
 *   [Replies Created](https://wordpress.org/support/users/corenominal/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/corenominal/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/corenominal/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/corenominal/engagements/)
 *   [Favorites](https://wordpress.org/support/users/corenominal/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 26 total)

1 [2](https://wordpress.org/support/users/corenominal/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/corenominal/replies/page/2/?output_format=md)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Attribute titles are centred instead of left aligned](https://wordpress.org/support/topic/attribute-titles-are-centred-instead-of-left-aligned/)
 *  [corenominal](https://wordpress.org/support/users/corenominal/)
 * (@corenominal)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/attribute-titles-are-centred-instead-of-left-aligned/#post-15267895)
 * Hi
 * I’ve taken a quick look and I think you can fix by adding some additional CSS
   to your theme.
 *     ```
       .woocommerce div.product form.cart .variations td, .woocommerce div.product form.cart .variations th {
           text-align: left;
       }
       ```
   
 * Happy to help if you need further assistance 😊
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Reddit does not pick up thumbnails for blog posts](https://wordpress.org/support/topic/reddit-does-not-pick-up-thumbnails-for-blog-posts/)
 *  [corenominal](https://wordpress.org/support/users/corenominal/)
 * (@corenominal)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/reddit-does-not-pick-up-thumbnails-for-blog-posts/#post-14782997)
 * Hi
 * Can you provide a link to the post page you are having issues with?
 * Meanwhile, I looked at your featured post here: [https://www.richardsilverstein.com/2021/08/17/as-cellebrite-prepares-for-public-offering-its-dirty-deeds-come-back-to-haunt/](https://www.richardsilverstein.com/2021/08/17/as-cellebrite-prepares-for-public-offering-its-dirty-deeds-come-back-to-haunt/)
   and it is missing the ‘og:image’ tags. The tags feature on your homepage:
 *     ```
       <meta property="og:image" content="https://www.richardsilverstein.com/wp-content/uploads/2018/02/tikkuntree-lg.jpg" />
       <meta property="og:image:width" content="700" />
       <meta property="og:image:height" content="300" />
       ```
   
 * But they don’t appear on your idividual posts.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Quick Populate Buttons jquery/java](https://wordpress.org/support/topic/quick-populate-buttons-jquery-java/)
 *  [corenominal](https://wordpress.org/support/users/corenominal/)
 * (@corenominal)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/quick-populate-buttons-jquery-java/#post-14766252)
 * I’m not sure if this will fix your issue, but `$current-price` is not a valid
   PHP variable name. Hyphens are not allowed. According to [PHP.net](https://www.php.net/manual/en/language.variables.basics.php):
 * >  A valid variable name starts with a letter or underscore, followed by any 
   > number of letters, numbers, or underscores.
 * Try changing it to something like `$current_price`.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Database SQL Queries table scanning](https://wordpress.org/support/topic/database-sql-queries-table-scanning/)
 *  [corenominal](https://wordpress.org/support/users/corenominal/)
 * (@corenominal)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/database-sql-queries-table-scanning/#post-14764091)
 * Hi 🙂
 * Answering your question: no, it is not a requirement to write the most efficient
   queries possible, although I’m sure many developers aspire to do so.
 * Answering your observation: to quote the WordPress site:
 * > Whether you’re a budding developer, a designer, or just like helping out, we’re
   > always looking for people to help make WordPress even better.
 * See [Make WordPress](https://make.wordpress.org/) for more information.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Mobile Friendly Issue](https://wordpress.org/support/topic/mobile-friendly-issue-3/)
 *  [corenominal](https://wordpress.org/support/users/corenominal/)
 * (@corenominal)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/mobile-friendly-issue-3/#post-14761641)
 * Hi 🙂
 * > I keep getting mobile-friendly issues after some time.
 * This is unclear. Please can you describe the issue(s) you are experiencing in
   more detail?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [CSS for Replacing Mobile Menu with Desktop Menu](https://wordpress.org/support/topic/css-for-replacing-mobile-menu-with-desktop-menu/)
 *  [corenominal](https://wordpress.org/support/users/corenominal/)
 * (@corenominal)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/css-for-replacing-mobile-menu-with-desktop-menu/#post-14761330)
 * Hi 🙂
 * Not sure if this will fix your issue, but your last block of CSS is missing some
   braces. Try replacing this:
 *     ```
       /* Show main nav Menu on – tablet and mobile */
   
       @media (max-width: 991px)
       #nav-main ul.sf-menu {
           display: inline-block;
       }
       ```
   
 * With this:
 *     ```
       /* Show main nav Menu on – tablet and mobile */
   
       @media (max-width: 991px) {
           #nav-main ul.sf-menu {
               display: inline-block;
           }
       }
       ```
   
 * Hope this helps.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Redirect to custom page if file doesn’t exist](https://wordpress.org/support/topic/redirect-to-custom-page-if-file-doesnt-exist/)
 *  [corenominal](https://wordpress.org/support/users/corenominal/)
 * (@corenominal)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/redirect-to-custom-page-if-file-doesnt-exist/#post-14760809)
 * Personally, I would load a template part. If you only have two conditions, then
   it should look something like:
 *     ```
       <?php
       // Test for media lookup
       $address = $_SERVER['REQUEST_URI'];
       if ( preg_match( "/wp-content\/uploads\//", $address ) )
       {
           // Load media missing template/message
           get_template_part( '404-missing-media-template' );
       }
       else
       {
           // Load regular 404 template/message
           get_template_part( '404-template' );
       }
       ?>
       ```
   
 * As you are not redirecting, the above could sit anywhere within your 404.php 
   file, where you want the message to be displayed. Note, you will need to create
   two more files in your theme directory:
    - 404-missing-media-template.php – containing “MEDIA DOESN’T EXIST” message
    - 404-template.php – containing regular 404 message
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Redirect to custom page if file doesn’t exist](https://wordpress.org/support/topic/redirect-to-custom-page-if-file-doesnt-exist/)
 *  [corenominal](https://wordpress.org/support/users/corenominal/)
 * (@corenominal)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/redirect-to-custom-page-if-file-doesnt-exist/#post-14760706)
 * The 404 Not Found template (404.php in your theme directory if you have one, 
   it is not a required theme file) is used when WordPress cannot find a post, page
   or file that matches the query. Ideally the code should be placed in this file.
   That said, I have no idea what theme or plugins you are using, so it might not
   work for you.
 * Note, in your original post you state:
 * > Now since file doesn’t exist it redirects to Error 404 page.
 * This isn’t quite accurate. The 404.php template file is called/loaded, not redirected
   to. Hope this makes sense? Happy to continue the conversation if you have more
   questions.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Redirect to custom page if file doesn’t exist](https://wordpress.org/support/topic/redirect-to-custom-page-if-file-doesnt-exist/)
 *  [corenominal](https://wordpress.org/support/users/corenominal/)
 * (@corenominal)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/redirect-to-custom-page-if-file-doesnt-exist/#post-14760556)
 * Sure, [WP has a function for that](https://developer.wordpress.org/reference/functions/wp_redirect/),
   you could try something like:
 *     ```
       <?php
       // Test for media lookup
       $address = $_SERVER['REQUEST_URI'];
       if ( preg_match( "/wp-content\/uploads\//", $address ) )
       {
           // Redirect or load template here
           wp_redirect( 'https://somewebsite.com/media-not-exist page' );
           exit;
       }
       ?>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Redirect to custom page if file doesn’t exist](https://wordpress.org/support/topic/redirect-to-custom-page-if-file-doesnt-exist/)
 *  [corenominal](https://wordpress.org/support/users/corenominal/)
 * (@corenominal)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/redirect-to-custom-page-if-file-doesnt-exist/#post-14760320)
 * Hi 🙂
 * You could try editing your theme’s 404.php file to include something like the
   following at the top:
 *     ```
       <?php
       // Test for media lookup
       $address = $_SERVER['REQUEST_URI'];
       if ( preg_match( "/wp-content\/uploads\//", $address ) )
       {
           // Redirect or load template here
           die( "MEDIA DOESN’T EXIST" );
       }
       ?>
       ```
   
 * Note, I’ve used the die() function above, but you can switch it to a redirect
   or get template part, or whatever. Hope this helps.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Grab Icon Cursor In Opera Browser](https://wordpress.org/support/topic/grab-icon-cursor-in-opera-browser/)
 *  [corenominal](https://wordpress.org/support/users/corenominal/)
 * (@corenominal)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/grab-icon-cursor-in-opera-browser/#post-14758072)
 * Hi 🙂
 * Not just Opera. It looks like the opening HTML element has some styling on it:
 * `<html lang="en-US" class="fp-enabled" style="overflow: hidden; height: initial;
   cursor: grab;">`
 * The “cursor: grab;” part is the cause. Just remove it and you should be good.
   That said, it looks like the styling is injected by JS. As your site appears 
   to be using Elementor, you might want to consider posting/moving this to [https://wordpress.org/support/plugin/elementor/](https://wordpress.org/support/plugin/elementor/)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Excessive White Space Below Image](https://wordpress.org/support/topic/excessive-white-space-below-image/)
 *  [corenominal](https://wordpress.org/support/users/corenominal/)
 * (@corenominal)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/excessive-white-space-below-image/#post-14757933)
 * Hi 🙂
 * Not too sure. It looks like you are using Elementor? I have no experience of 
   using that, but I guess you’ll just want to overwrite the current CSS with something
   like below:
 *     ```
       .elementor-567 .elementor-element.elementor-element-3319eb22 .elementor-posts-container .elementor-post__thumbnail {
           padding-bottom: 0px;
       }
   
       .elementor-567 .elementor-element.elementor-element-2a5813d6 .elementor-posts-container .elementor-post__thumbnail {
           padding-bottom: 0px;
       }
       ```
   
 * Does Elementor give you the option to add custom CSS?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Excessive White Space Below Image](https://wordpress.org/support/topic/excessive-white-space-below-image/)
 *  [corenominal](https://wordpress.org/support/users/corenominal/)
 * (@corenominal)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/excessive-white-space-below-image/#post-14757880)
 * Hi 🙂
 * It looks like the image’s parent has some bottom padding:
 *     ```
       .elementor-567 .elementor-element.elementor-element-3319eb22 .elementor-posts-container .elementor-post__thumbnail {
           padding-bottom: calc( 0.53 * 100% );
       }
       ```
   
 * Same for the other images further down the page:
 *     ```
       .elementor-567 .elementor-element.elementor-element-2a5813d6 .elementor-posts-container .elementor-post__thumbnail {
           padding-bottom: calc( 0.55 * 100% );
       }
       ```
   
 * Hope this helps.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [a href text not showing up](https://wordpress.org/support/topic/a-href-text-not-showing-up/)
 *  [corenominal](https://wordpress.org/support/users/corenominal/)
 * (@corenominal)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/a-href-text-not-showing-up/#post-14757852)
 * Hi 🙂
 * It looks like there is some styling on the CSS pseudo element:
 *     ```
       .mkdf-woocommerce-page table.cart tr.cart_item td.product-remove a:after {
           content: "\f404";
           display: inline-block;
           vertical-align: middle;
           speak: none;
           color: inherit;
           font-family: Ionicons;
           font-size: 25px;
           line-height: inherit;
           font-style: normal;
           font-weight: 400;
           font-variant: normal;
           text-transform: none;
           text-rendering: auto;
           -webkit-font-smoothing: antialiased;
           -moz-osx-font-smoothing: grayscale;
       }
       ```
   
 * Also, the .product-remove class has its font size set to 0, which means the x
   does not show.
 *     ```
       .mkdf-woocommerce-page table.cart tr.cart_item td.product-remove a {
           color: #565969;
           font-size: 0;
           line-height: 1;
       }
       ```
   
 * If you need any more pointers, just shout!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Quick Populate Buttons jquery/java](https://wordpress.org/support/topic/quick-populate-buttons-jquery-java/)
 *  [corenominal](https://wordpress.org/support/users/corenominal/)
 * (@corenominal)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/quick-populate-buttons-jquery-java/#post-14757583)
 * Hi 🙂
 * Here is some example code: [https://jsfiddle.net/7Lx5puhb/](https://jsfiddle.net/7Lx5puhb/)
 * I think it meets this:
 * > These 3 buttons has values attached to them but it need to do a calculation
   > by adding their value to a existing value/variable and then fill the field 
   > with the result
 * Is it close to what you are looking for?

Viewing 15 replies - 1 through 15 (of 26 total)

1 [2](https://wordpress.org/support/users/corenominal/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/corenominal/replies/page/2/?output_format=md)