Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Not sure that this is still of interest, but here’s a link to an article that covers it:
    https://www.findurlaptop.com/tech/2014/03/04/remove-right-sidebar-in-twenty-fourteen-wordpress-theme/

    The important thing if you want some pages to have the sidebar and others not to is to use different templates.

    stillpointdigitalpress

    (@stillpointdigitalpress)

    Thanks for the fix! That was driving me nuts — I was digging all over my sites to find the problem.

    David Kudler
    Stillpoint Digital Press

    Thread Starter stillpointdigitalpress

    (@stillpointdigitalpress)

    Solved.

    How?

    I moved the whole installation up to the root directory and got rid of all of the htaccess tricks.

    Ah, well. Sometimes it doesn’t pay to be too clever.

    Thread Starter stillpointdigitalpress

    (@stillpointdigitalpress)

    Okay —?one small mystery narrowed down.

    The problem with all attempts to edit or view pages, products, etc., seems to be tied to the /wp-admin/edit.php file. No matter what parameter gets passed to the file, it displays posts.

    Here’s the code in the edit.php file that I think isn’t working:

    unset( $_redirect );
    
    if ( 'post' != $post_type ) {
    	$parent_file = "edit.php?post_type=$post_type";
    	$submenu_file = "edit.php?post_type=$post_type";
    	$post_new_file = "post-new.php?post_type=$post_type";
    } else {
    	$parent_file = 'edit.php';
    	$submenu_file = 'edit.php';
    	$post_new_file = 'post-new.php';
    }

    Now, my PHP isn’t strong enough to now why that isn’t working. But it isn’t.

    Thread Starter stillpointdigitalpress

    (@stillpointdigitalpress)

    Oh —?and when I add the following to the wp-config.php file:

    define('CONCATENATE_SCRIPTS', false);

    I get CSS and JavaScript back in wp-admin — but I can’t access any pages, comments, products, etc. I am dropped into the “All Posts” panel.

    Thread Starter stillpointdigitalpress

    (@stillpointdigitalpress)

    I’ve now tried two fresh installs —?with the same result.

    The site is in a subdirectory — it’s the primary site on the account, so I use htaccess and a rewrite rule to redirect the base URL to the subdirectory. I’ve done this before and it worked — not now. The problem seems to happen when I change the “site URL” and “home” in the General settings menu. Once I get rid of the subdirectory and attempt to enter the main URL there, all hell breaks loose. CSS disappears, and the console informs me that “jQuery is not defined” over and over on every page that I attempt to access —?but ONLY on wp-admin. For the rest of the site, jquery works just fine.

    If I attempt to reset the URL (in myPHPadmin, because I can’t get at the General Settings panel anymore), I get dropped into an endless signin loop. So I can’t reverse the problem — which tells me I’m missing something.

    FYI, here’s the .htaccess file in the root folder (the one that points to the new subdomain):

    # rule for a specific 'filepathname'
    RewriteCond %{HTTP_HOST} ^(www\.)?stillpointeros\.com$ [NC]
    # exclude specific calls for the subfolder in question or for files or folders that exist in the root
    RewriteCond %{REQUEST_URI} !^/sev22/wordpress/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ sev22/wordpress/$1#
    
    # rule for the domain root
    RewriteCond %{HTTP_HOST} ^(www\.)?stillpointeros\.com$
    RewriteRule ^(/)?$ sev22/wordpress/index.php [L]

    (I left a couple of lines out of that which point to other sites —?they really can’t possibly be involved.)

    And here’s the .htaccess for the installation folder:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*)$ $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    I’ve tried commenting out the filename (!-f) and directory (!-d) exclusions in the root htaccess file. I’ve tried changing the RewriteBase in htaccess in the WP folder to the full path. No luck.

    For now, I’m out of ideas.

    Wow.

    Thanks nerdaryan —?this is a great plug-in, and that was a helpful question about saving the options. But may I suggest that you find some sort of solution for that? I just spent two hours trying to figure out what I was doing wrong!

    (And yeah — adding an “Ask a Question” button at the top of the main questions page would be really helpful too.)

Viewing 7 replies - 1 through 7 (of 7 total)