Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter vladimirknight

    (@vladimirknight)

    No no, I meant posts. The problem I has was specifically because the front page had both regular and featured posts, and the featured posts were set to display full content.

    Some of the images are very, VERY large though and I wanted the option to use a scaled-down version that would take you to the attachment on-click. Since I couldn’t do that directly, I planned to add an image regularly into the post content itself – separate from the Featured image and thumbnail.

    BUT THEN it would display two images on the homepage – one from the featured image carousel and once more the image inside the post.

    Since I wanted readers to see the thumbnail on the homepage and the scaled down image inside the post (and not both, since they’re the same) I just needed a way to hide the image on the homepage.

    I just realised today though that all the changes I’ve made have been to the original theme files and not a child theme, though. Whoops. =/

    Thread Starter vladimirknight

    (@vladimirknight)

    Hi Denzel, thank you for your reply and for bearing with me.

    I had some sleep, cleared my head and figured everything out. Fresh eyes really do help!

    For anyone else interested in the future, I assigned all images in a post that I didn’t want to see on the homepage a unique class – hideonhome. Very creative, I must say.

    Then with some simple CSS, you can disable that class from being visible on the home page:

    body.home .hideonhome {
      display:none ; }

    This way the featured image is visible on the home page AND any image with that class, fully modifiable, will be seen inside the post but not on the homepage.

    Simple, and took me minutes to both discover and implement this morning.

    Apologies for asking something beyond your scope to answer, Denzel. Appreciate your response nevertheless. <3

    Thread Starter vladimirknight

    (@vladimirknight)

    On vladimirknight, renaming the plugin folder lets me log into the dashboard, but the subpages (like /wp-admin/update-core.php) still return a 404.

    Same for knightofsnow. On youarelowonhealth, I was always able to log into the dashboard, but the subpages return a 404.

    Disabling the theme via ftp (by renaming the individual theme’s folder, since I can’t access /themes.php) blanks out the sites. Every page becomes plain white, and the wp-admin pages that gave a 404 before now only come up with these white pages.

    The databases for knightofsnow and vladimirknight are about 3.5 MB each, the one for youarelowonhealth is slightly over 13 MB.

    My host plan is “unlimited” everything (on shared hosting). Total disk usage across all 3 sites is 620MB.

    If it makes a difference, the main domain is knightofsnow with the other 2 being addon domains.

    Thread Starter vladimirknight

    (@vladimirknight)

    The addon domains point to [home]/public_html/[addondomain] which was the default. I did mean to change it at one point, but never got around to it. They can also be accessed via [addondomain].[maindomain].com.

    This setup worked for months before 4.3 was released (for the record, I don’t think 4.3 broke anything) and I’m just confused what did break.

    The error log in cpanel is completely empty (is meant to show the last 300 entries, but either there are none or it’s not showing them).

    In the main site, (youarelowonhealth) the error log in the root does have entries, though most are a month old (Aug 27) with the most recent on 10 September. These are the last two entries, the other 10 entries from Aug 27th are all “WordPress database error Table”.

    [27-Aug-2015 12:19:26] WordPress database error Table 'snknight_wp745.wp_posts' doesn't exist for query SELECT SQL_CALC_FOUND_ROWS  wp_posts.ID FROM wp_posts  WHERE 1=1  AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish')  ORDER BY wp_posts.post_date DESC LIMIT 0, 3 made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/hueman/404.php'), get_sidebar, locate_template, load_template, require_once('/themes/hueman/sidebar.php'), get_template_part, locate_template, load_template, require('/themes/hueman/sidebar-2.php'), dynamic_sidebar, call_user_func_array, WP_Widget->display_callback, AlxPosts->widget, WP_Query->__construct, WP_Query->query, WP_Query->get_posts
    
    [10-Sep-2015 23:43:36] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM <code>wp_options</code> WHERE <code>option_name</code> = '_site_transient_timeout_security_report_performed_recently' made by require('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), call_user_func_array, Jetpack::perform_security_reporting, get_site_transient, delete_site_option, delete_option

    Thank you so much for your time, Jackie.

    Thread Starter vladimirknight

    (@vladimirknight)

    Certainly, thanks for your response!

    The three sites are:
    http://youarelowonhealth.com
    http://knightofsnow.com
    http://vladimirknight.com

    The .htaccess for all three is identical:

    AddHandler application/x-httpd-php52 .php .php5 .php4 .php3
    
    # 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

    _____________________________________________
    One interesting thing I’ve noticed while playing around with the installation a while back – renaming (or completely removing) the plugin folder allows me to access the /wp-admin/plugins.php page. Keeping the folder, however, even if it’s completely empty, still gives the usual 404 error.

    I thought it might be a database error because of this, but checking through cpanel and Softaculous it appears to be pointing at the correct database. I’m stumped. πŸ™

    Thread Starter vladimirknight

    (@vladimirknight)

    Well, I thought I had it down, but LIFE loves little curveballs, doesn’t it? This one’s all on me, though.
    @bdbrown, my problem is resolved, this next part is only for someone who may stumble across this thread at a later date so you may skip to the end.

    I mistakenly thought that I could use the current-menu-item to change the attributes of any object on the page. Since I was very clearly not the only one with similar questions, this is how current-menu-item works:

    – It only applies to menus. With the code above, all I did was create a colored box with all the attributes I wanted and duplicated it however many times I needed.
    – What wp_nav_menu does is add a class to a menu link with the same url as the current page (hence the name).
    – The reason it does this is to distinguish that link from the others in the menu.
    – You can then edit the .current-menu-item class directly and have those changes apply only to the specific link.
    – What I ended up doing (and what I should have done in the first place) is create a Custom Menu, place it in a widget and then customise the hell out of it with custom CSS.

    @bdbrown Thank you for the phenomenal response speed and taking the time to nudge me in the right direction. This experience has been better than 80% of even the paid products (themes and otherwise) I’ve had the pleasure (and displeasure) of using. For 0 dollars. I will sing your praises until the day I no longer use WordPress. Thank you!
    (Even so, I hope to not have another reason to talk to you on these boards again. <3 )

    You’re a legend.
    ~ Vladimir

    Thread Starter vladimirknight

    (@vladimirknight)

    Hi bdbrown, thank you for the quick response. You’re an absolute legend!

    I looked at using the Child Menu, but as far as I could tell that’s only done in the primary (left) sidebar, is it not? My understanding is that in the link above it’s on the right because it moves the primary sidebar.

    Anyway, I’ve come up with a simple-ish workaround that works for me.
    This is the CSS (colors experimental):

    .sidemenu a {
    	color: #fff;
    	background: #3b8dbd;
    	display: block;
    	line-height: 300%;
    	padding-left: 15%;
    	font-family: "Verdana";
    	font-weight: 600;
    }
    
    .sidemenu a:hover {
    	background-color: #2e3035;
    }

    Unfortunately to keep line spacing it means I need to wrap each menu item in their own tags, but it works and looks good enough to me (plus it inherits scaling from the sidebar).
    Is there anything outright wrong with the code? Just because it works, doesn’t mean it’s necessarily “good”. πŸ™

    And one more thing – is there a way to change the highlight of a link when the user is on that page, like the nav menus (and the Child Menu) do?
    Those menus seem to use php, which I know nothing about. Is there even a way for me to implement a feature like that with the simple code I’m using?
    Am I trying to have my cake and eat it too!?

    Thank you for your time!
    ~ Vladimir

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