Title: cleancoded's Replies | WordPress.org

---

# cleancoded

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

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

 Search replies:

## Forum Replies Created

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

1 [2](https://wordpress.org/support/users/cleancoded/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/cleancoded/replies/page/3/?output_format=md)…
[7](https://wordpress.org/support/users/cleancoded/replies/page/7/?output_format=md)
[8](https://wordpress.org/support/users/cleancoded/replies/page/8/?output_format=md)
[9](https://wordpress.org/support/users/cleancoded/replies/page/9/?output_format=md)
[→](https://wordpress.org/support/users/cleancoded/replies/page/2/?output_format=md)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Mobile Menu not centered but right](https://wordpress.org/support/topic/mobile-menu-not-centered-but-right/)
 *  [cleancoded](https://wordpress.org/support/users/cleancoded/)
 * (@cleancoded)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/mobile-menu-not-centered-but-right/#post-12766364)
 * Hi Dominique!
 * From the backend dashboard, please click on Appearance > Customize and add the
   following CSS in the “Additional CSS” section:
 *     ```
       @media(max-width:767px){
       .sticky-wrapper {
           float: left;
           position: absolute;
           top: 0;
       }
   
       ul.dock-panel.clearfix {
           text-align: right;
           top: 10px;
       }
       .dock-tab-wrapper.dock-menu.show {
           width: 100%;
       }
       }
       ```
   
 * Don’t forget to click the blue “Save and Publish” button on the top to save changes!
    -  This reply was modified 6 years, 2 months ago by [cleancoded](https://wordpress.org/support/users/cleancoded/).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How do I remove underlines in page titles in mobile view?](https://wordpress.org/support/topic/how-do-i-remove-underlines-in-page-titles-in-mobile-view/)
 *  [cleancoded](https://wordpress.org/support/users/cleancoded/)
 * (@cleancoded)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/how-do-i-remove-underlines-in-page-titles-in-mobile-view/#post-11443758)
 * I’m not seeing any underlined titles on any pages:
 * > [View post on imgur.com](https://imgur.com/4RbYxtt)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [my website is gone](https://wordpress.org/support/topic/my-website-is-gone-13/)
 *  [cleancoded](https://wordpress.org/support/users/cleancoded/)
 * (@cleancoded)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/my-website-is-gone-13/#post-10893004)
 * Your site is displaying for me: [https://imgur.com/a/MVIDx2M](https://imgur.com/a/MVIDx2M)
 * Might be a cache issue, can you try clearing you browser cache, or try viewing
   from an incognito window?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Displaying menu in other place](https://wordpress.org/support/topic/displaying-menu-in-other-place/)
 *  [cleancoded](https://wordpress.org/support/users/cleancoded/)
 * (@cleancoded)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/displaying-menu-in-other-place/#post-10885174)
 * Hi! This can be done by adding a new function that creates a “menu” shortcode
   within your WordPress theme.
 * I will assume you are using a child theme, so when you update your theme later
   on, you won’t lose this new functionality.
 * If you have theme editor enabled, from your WordPress backend dashboard, navigate
   to **Appearance > Editor** and select the `functions.php` file.
 * Add the code below, which creates a new “menu” shortcode you can use in posts
   and pages:
 *     ```
       function print_menu_shortcode($atts, $content = null) { 
       extract(shortcode_atts(array( 'name' => null, ), $atts));
       return wp_nav_menu( array( 'menu' => $name, 'echo' => false ) ); 
       } 
       add_shortcode('menu', 'print_menu_shortcode');
       ```
   
 * (If you don’t see the theme editor, access the file via FTP, add the code to 
   the bottom, save changes and upload it to your child theme.) After you save changes(
   or upload the new `functions.php` file to your theme folder), you can now use
   a shortcode `[menu name="menu-name"]` in posts and pages.
 * Here’s a quick walkthrough video outlining how to add this function (don’t add
   it to a parent theme like I did, the WordPress site I used was a disposable sandbox
   environment):
 *   Forum: [Accessibility](https://wordpress.org/support/forum/accessibility/)
   
   In reply to: [Google shut me out from my WP homepage, help!](https://wordpress.org/support/topic/google-shut-me-out-from-my-wp-homepage-help/)
 *  [cleancoded](https://wordpress.org/support/users/cleancoded/)
 * (@cleancoded)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/google-shut-me-out-from-my-wp-homepage-help/#post-10884174)
 * Google Authenticator is almost certainly being added to your WordPress site from
   a security plugin. If you have FTP access to your site, try accessing the `/wp-
   content/plugins/` folder and rename the security plugin folder, if you see one.
 * If that doesn’t work, try [manually resetting your plugins](https://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F)(
   no Dashboard access required). If that resolves the issue, reactivate each one
   individually (and consider resetting or reconfiguring the security plugin, if
   you still want to use it).
 * If that does not resolve the issue, access your server via [SFTP or FTP](https://codex.wordpress.org/FTP_Clients),
   or a file manager in your hosting account’s control panel, navigate to `/wp-content/
   themes/` and rename the directory of your currently active theme. This will force
   the default theme to activate and hopefully rule-out a theme-specific issue (
   theme functions can interfere like plugins).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Links plugin](https://wordpress.org/support/topic/looking-for-a-plugins/)
 *  [cleancoded](https://wordpress.org/support/users/cleancoded/)
 * (@cleancoded)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/looking-for-a-plugins/#post-10880806)
 * Do you mean about your request for help setting up an HTML sitemap with columns?
 * Here’s an (admittedly older) plugin that might work for your WordPress site:
 * [https://wordpress.org/plugins/wp-seo-html-sitemap/](https://wordpress.org/plugins/wp-seo-html-sitemap/)
 * I’ve just tested it with WordPress 4.9.8 and it seems to provide the functionality
   you’re looking for, please have a look here:
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Login](https://wordpress.org/support/topic/login-131/)
 *  [cleancoded](https://wordpress.org/support/users/cleancoded/)
 * (@cleancoded)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/login-131/#post-10877446)
 * Depending on how many email addresses you’ve used in the last 3 years, it might
   be worth trying the “Lost Password” link from the login screen:
 * `website.com/wp-login.php?action=lostpassword`
 * If this does not work, you’ll need to reset your password a different way. You
   cannot access or change your login credentials via FTP. There are a variety of
   options through your hosting account, though, and the easiest way would be by
   logging into your hosting account and accessing cPanel, then accessing phpmyadmin.
 * Here are some step-by-step instructions:
 * [https://codex.wordpress.org/Resetting_Your_Password#Through_phpMyAdmin](https://codex.wordpress.org/Resetting_Your_Password#Through_phpMyAdmin)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Export website post and articles](https://wordpress.org/support/topic/export-website-post-and-articles/)
 *  [cleancoded](https://wordpress.org/support/users/cleancoded/)
 * (@cleancoded)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/export-website-post-and-articles/#post-10872030)
 * This will really depend on your other site — how it’s configured and how you 
   can feed publishable content to it. Your WordPress site will make the content
   portable and formatted in a way that should be easy for just about any other 
   platform to read/parse/publish, though.
 * Like most things with website development, there are a few ways this could be
   done successfully, but I think the easiest way would be to leverage the variety
   of feeds your WordPress site publishes and use one/some of these feeds as a means
   of adding the new content to your other site. Feeds make your WordPress content
   easy to parse and read for your other site to read, format and publish.
 * Here’s some more information on WordPress feeds: [https://codex.wordpress.org/WordPress_Feeds](https://codex.wordpress.org/WordPress_Feeds)
 * Here’s also a quick video walkthrough I created for finding the built-in feeds
   for posts and post categories on a default, sandbox install of WordPress:
 * Another option that might work for you would be to leverage a service like IFTTT
   or Zapier, where you use your WordPress site publishing a new post as a trigger,
   and have that content post somewhere else, again, depending on your other site
   and how it can accept new content.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Separate Blog within the Blog](https://wordpress.org/support/topic/separate-blog-within-the-blog/)
 *  [cleancoded](https://wordpress.org/support/users/cleancoded/)
 * (@cleancoded)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/separate-blog-within-the-blog/#post-10871941)
 * I think a separate “homebrewing” category would actually be the best approach
   here, and if you don’t want the new category posts to show up on your blog archive
   or anywhere else you’re pulling/displaying “all” posts, just be sure to include/
   exclude the categories you want to display there. It will be a bit of work to
   find all the places on your site where you are displaying posts and make sure
   the new category content is excluded, but, I think this would be much less work
   than the ongoing task of managing two separate sites.
 * If you really want a fully separate blog for this content, with its own database
   and theme, you could always install WordPress in a subdirectory of your root 
   domain — like domain.com/homebrewing — and add the new homebrewing content there.
   Of course, then you’ll have separate logins, databases, themes and plugins to
   manage.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Link to PDF showing “The image could not be loaded”](https://wordpress.org/support/topic/link-to-pdf-showing-the-image-could-not-be-loaded/)
 *  [cleancoded](https://wordpress.org/support/users/cleancoded/)
 * (@cleancoded)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/link-to-pdf-showing-the-image-could-not-be-loaded/#post-10865432)
 * It looks like you’re using the **Photoswipe Masonry Gallery** plugin to handle
   the way your WordPress sites handles linked media files, in your example, how
   your site handles the media library-hosted PDF link from `PDF-Cover.jpg`.
 * While logged in, edit your page (/quick-guide-to-corporate-photography) and click
   on the “Text” editor. Remove the `class="single_photoswipe"` from the `<a>` link
   tag. This will allow your PDF to open without the special handling provided from
   the Photoswipe Masonry Gallery plugin.
 * Here’s a step-by-step video I created that (1) successfully recreates the error
   you’re experiencing and (2) outlines how to fix it:
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Links plugin](https://wordpress.org/support/topic/looking-for-a-plugins/)
 *  [cleancoded](https://wordpress.org/support/users/cleancoded/)
 * (@cleancoded)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/looking-for-a-plugins/#post-10864968)
 * For the first issue, adding 10 links to every page of your WordPress site, what
   are the business rules around what you’re looking to achieve? You mentioned this
   list of posts would not be “related” posts, so are they random? Do they need 
   to be the same on every page?
 * Do you truly just want 10 random links to posts to display?
 * Try adding this to your functions.php file:
 *     ```
       function cleancoded_random_posts() { 
   
       $args = array(
           'post_type' => 'post',
           'orderby'   => 'rand',
           'posts_per_page' => 10, 
           );
   
       $the_query = new WP_Query( $args );
   
       if ( $the_query->have_posts() ) {
   
       $string .= '<ul>';
           while ( $the_query->have_posts() ) {
               $the_query->the_post();
               $string .= '<li><a href="'. get_permalink() .'">'. get_the_title() .'</a></li>';
           }
           $string .= '</ul>';
           /* Restore original Post Data */
           wp_reset_postdata();
       } else {
   
       $string .= 'no posts found';
       }
   
       return $string; 
       } 
   
       add_shortcode('cleancoded-random-posts','cleancoded_random_posts');
       add_filter('widget_text', 'do_shortcode'); 
       ```
   
 * **What this is, and how it works: **
 * This code creates a function that displays 10 random posts. It then creates a
   shortcode you can use to display random posts anywhere on your site (it also 
   enables shortcodes to be executed inside WordPress widgets so that you can use
   this shortcode inside a text widget).
 * Now you can display random posts inside a WordPress post, page or text widget
   using the shortcode `[cleancoded-random-posts]`.
 * And here’s a quick video walkthrough I created to show how to use this. I created
   a sandbox test install of WordPress, created and published some placeholder posts,
   added this code to my functions.php file, then added this shortcode to a widget,
   and show how the posts are displayed, in random order, in the sidebar:
 * If this is too basic, or you need more functionality, have a look at this plugin,
   it creates a widget, and shortcodes that are configurable with a variety of parameters
   to suit your needs:
 * [https://wordpress.org/plugins/advanced-random-posts-widget/](https://wordpress.org/plugins/advanced-random-posts-widget/)
 * For number 2, it sounds like you’re looking for an HTML sitemap plugin. There
   are many of these to choose from, like this one:
 * [https://wordpress.org/plugins/simple-sitemap/](https://wordpress.org/plugins/simple-sitemap/)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Redirect an external link that is down to internal WordPress page](https://wordpress.org/support/topic/redirect-an-external-link-that-is-down-to-internal-wordpress-page/)
 *  [cleancoded](https://wordpress.org/support/users/cleancoded/)
 * (@cleancoded)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/redirect-an-external-link-that-is-down-to-internal-wordpress-page/#post-10864863)
 * The most straightforward solution would probably be that you would always direct
   users to the “dynamic” site from your WordPress site with a custom external link,
   and you control traffic at the “dynamic” site based on HTTP status code it gives.
 * Do you have the ability to direct users from the dynamic site _when it’s down_?
 * When the site you’re linking to goes down, is it throwing a 500-server error,
   or is it something that you could theoretically configure to direct back to your
   WordPress site (with either a custom 404 page with built-in 302 redirect, or 
   a redirect on the custom page that displays when the site is down, assuming it’s
   something you can control/200 success code)?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Hidden Header Widget](https://wordpress.org/support/topic/hidden-header-widget/)
 *  [cleancoded](https://wordpress.org/support/users/cleancoded/)
 * (@cleancoded)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/hidden-header-widget/#post-10864300)
 * After viewing the source code of your homepage and a couple interior pages, I
   see a `<div>` with class “top-header” added to the top of every page (the red
   bar at the top of the screen displaying your phone number and social icons).
 * From the code you posted above, I’m assuming this is the widget content you’re
   hoping will display on all pages, and I’m currently seeing it on all pages… perhaps
   you’ve fixed this already?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Again: E-mails not working](https://wordpress.org/support/topic/again-e-mails-not-working/)
 *  [cleancoded](https://wordpress.org/support/users/cleancoded/)
 * (@cleancoded)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/again-e-mails-not-working/#post-10864093)
 * Hi!
 * First, you’ll want to see if the emails are being correctly generated and sent.
   You can do this by installing a plugin like [WP Mail Logging]([https://wordpress.org/plugins/wp-mail-logging/](https://wordpress.org/plugins/wp-mail-logging/)),
   and publishing a post/submitting a form/submitting a test order (you’ll want 
   to trigger whatever event you are expecting to generate an email).
 * If the emails are being generated successfully, there’s a good chance that the
   site’s server is blocking them from being sent. In this case, you’ll want to 
   look into [a dedicated SMTP provider](https://docs.woocommerce.com/document/email-faq/#section-5).
 * If the emails aren’t being generated, most likely, there is some theme or plugin
   conflict. In this case, I would attempt to disable all plugins but mailpoet, 
   and use one of the default (Twenty*) themes. If the problem goes away (your emails
   are being generated as expected), enable your preferred theme and plugins one
   by one to identify the source of your troubles.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Publish Button](https://wordpress.org/support/topic/publish-button-4/)
 *  [cleancoded](https://wordpress.org/support/users/cleancoded/)
 * (@cleancoded)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/publish-button-4/#post-10864066)
 * This may be a plugin or theme conflict. I know you mentioned you’ve already followed
   advice found on other forums, but you didn’t mention any of the things you tried—
   did you try disabling plugins?
 * Please attempt to disable all plugins, and use one of the default (Twenty*) themes.
   If the problem goes away, enable them one by one to identify the source of your
   troubles.
 * If you can still install plugins, install “Health Check”: [https://wordpress.org/plugins/health-check/](https://wordpress.org/plugins/health-check/)
 * On the troubleshooting tab, you can click the button to disable all plugins and
   change the theme for you, while you’re still logged in, **without affecting normal
   visitors to your site**.

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

1 [2](https://wordpress.org/support/users/cleancoded/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/cleancoded/replies/page/3/?output_format=md)…
[7](https://wordpress.org/support/users/cleancoded/replies/page/7/?output_format=md)
[8](https://wordpress.org/support/users/cleancoded/replies/page/8/?output_format=md)
[9](https://wordpress.org/support/users/cleancoded/replies/page/9/?output_format=md)
[→](https://wordpress.org/support/users/cleancoded/replies/page/2/?output_format=md)