Forum Replies Created

Viewing 15 replies - 1 through 15 (of 24 total)
  • Ahhh… I see.

    Makes sense.

    I think what’s happening is that the shortcode [download]… whatever Plugin is controlling it… maybe it was deactivated or changed somehow?

    My guess is what it’s probably doing is… linking to a PHP file… where it sets the “headers” to force a download of the PDF. It’s simple enough to create the PHP file to do that…but… it’s probably best to try and sort out what is controlling that [download] shortcode to see if it can be fixed.

    Another idea I read about is to do something like this which works it most modern browsers:

    <a href="https://www.rlugnynj.com/wp-content/uploads/Feb_2016.pdf" download>(Down)</a>

    And as a workaround, you can put something like (right-click and click Save As… to download) next to the link.

    That’s all I’ve got to offer for this issue…

    Have a good one!

    • This reply was modified 8 years, 2 months ago by Keith Lock. Reason: spelling

    The PDF exists… it’s probably just a problem in how it’s rendering with that “download” shortcode. I never actually heard of that shortcode… maybe something broke with the tool that uses it? Maybe a plugin.

    At any rate… you could add this to your page to get the same effect (I assume):

    <a href="https://www.rlugnynj.com/wp-content/uploads/Feb_2016.pdf">(Down)</a>

    Does that work for you?

    Awesome!

    Pluginception is easy eh?

    I’m glad you braved it.

    If you are ever concerned about messing anything up… you can first do a database backup… then… try something… and then revert back if need be. Someone will always be available to help.

    There are heaps of ways to do a database backup. Some hosts offer the option. JetPack has a Premium feature for backups. There are free plugins, like All In On WP Security and Firewall, that offer manual and automated backups… etc.

    Also… for *some* things, you can use the Live Preview tool (Appearance >> Customize) to *try* things out before making them “live” on the web site. That wouldn’t have helped in this case though.

    However… in this case… since you created a plugin… if the code broke your web site… you wouldn’t lose everything… you could just rename (or delete) the plugin folder (found in wp-content/plugins/)… and everything would magically re-appear. You can rename/delete your plugin through FTP or your host’s Control Panel (File Manager) if that were to ever happen.

    Don’t feel concerned about playing around…

    And good job for fixing this issue!

    Happy Holidays ??

    It could be a general WordPress-filter to fix it though, and not theme specific. Worth investigating, no?

    That feels like poor support to shove her off somewhere else… but hey, I’m new to the forums, so what do I know.

    I will check my email tomorrow to see if you sill need help. Be sure to set this thread as Resolved if you sorted it out though!

    Good night.

    I couldn’t see the theme demo… but perhaps it’s as easy as what is described here:
    https://wordpress.stackexchange.com/questions/179585/remove-category-tag-author-from-the-archive-title

    You can use a Plugin like Pluginception to easily create a plugin and add that code… or even add it to your themes functions.php file.

    Here’s a modified version of the code found in the link:

    add_filter( 'get_the_archive_title', function ($title) {
      if ( is_category() ) {
        $title = single_cat_title( '', false );
      }
      return $title;
    });

    If that doesn’t do the trick for you, it might be very theme specific. Hope this works though!

    Very good!

    I will stay subscribed to this thread, and check my email here and there in case you need further help.

    Have a good one. Happy Holidays.

    Here is what a clean/common .htaccess file looks like:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Since you are using Yoast SEO, you may be able to see the .htaccess easily:

    https://kb.yoast.com/kb/how-to-edit-htaccess-through-yoast-seo/

    If it has been inactive for a while, it *probably* isn’t the culprit.

    When using it (if ever) it *may* have created entries in .htaccess (for security reasons), and, although the plugin is inactive now, those entries may have stayed. And they *may* be what’s causing the issue. But, that’s a stretch, unless of course the issues occurred immediately after using the plugin, and then deactivating it, which doesn’t sound like the case.

    I don’t use Wordfence so I don’t know specifically what it offers… and in general I would suggest that you *do* make your site secure (unless your host handles it)… but… I would also never keep any inactive plugins installed. Every plugin is a potential backdoor into the site, so keeping only what’s needed is good practice (I feel).

    Some plugins will let you see the contents of .htaccess… otherwise you can view it through SFTP/FTP or your Host’s Control Panel File Manager if available.

    In general, there isn’t much in .htaccess except what WordPress writes in there when editing Permalinks. You can try regenerating it by going to Settings >> Permalinks and clicking Save Changes.

    With that said… many Security Plugins will alter the .htaccess (and even if deactivating the security plugin, the changes might stay).

    • This reply was modified 8 years, 2 months ago by Keith Lock. Reason: spelling mistake :)

    Are you able to clear cache from inside your Dashboard or Host Control Panel?

    Maybe even have a look to see what the Site Address and WordPress Address are set to, to make sure they’re set right. (Settings >> General)

    Also, try activating a different theme to see if that corrects it.

    OK, I would:

    1) Delete any unused plugins, then test again

    2) Deactivate the plugins one at a time, starting with any redirect plugins, then test again

    3) View the .htaccess file to see if anything seems strange

    Let me know if you run into any questions along the way

    You could just try to Deactivate one plugin at a time.

    I just checked and see that you are redirected to the login screen.

    It could be a security plugin installed that modified the .htaccess file.

    I will stick around for a bit to see if I can be of any help once I hear back from you.

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