pyjamaman
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: New Pages are not showing upOkay, I take it back about the menu. Sorry, the red area at the top looked like it should be a menu! I missed the ‘About Fruity Living’ link, which does actually work.
If I understand what you’re aiming at correctly, I would forget about categories. You want three pages: Home and About which you add some content to. And Recipes, which you leave blank.
Then go into Settings->Reading. Set ‘Front Page Displays’ to Static Page, and select Home as the static page. Set Recipes as the Posts Page.
Note, WordPress uses the term ‘Blog’ and ‘Posts’ a lot because it used to be blogging tool. Your website doesn’t have to treat posts like that. For example, if you go into Appearance->Widgets, you can drag the ‘Recent Posts’ widget into your sidebar, but set the title to ‘Latest Recipes’ and don’t display the date.
To add the Home page to your menu you may have to add it as a ‘Link’ rather than a page, setting the Title to Home, and the Link to http://www.fruityliving.com.
Forum: Fixing WordPress
In reply to: New Pages are not showing upHi, by “an example of a permalink” I meant to one of the pages you have created – it will appear below the title in the page editing screen. Something like http://www.fruityliving.com/?id=14 or http://www.fruityliving.com/about. In other words the link that should go to one of the pages that you say is not displaying.
In Appearance->Menus on the Manage Locations tab is there a menu assigned to something like ‘Primary Menu’. In the Edit Menus tab, if you select that menu, does it contain any of your pages? If not can you add them from a list of Pages on the left?
Forum: Fixing WordPress
In reply to: New Pages are not showing upLooks to me like you just haven’t set the menu. When you’re in the edit page area, just below the title there’s a permalink and a ‘View Page’ button. Do these work? If so the page is “on your site”, there’s just no link to it from your front page.
The standard place to edit/set menus is in Appearance->Menus. (Although you may also be able to set something in Appearance->Customize or some option specifically offered by your theme). Select a menu to display in the ‘Manage Locations’ tab.
If you need to, first edit or create a menu in the Edit Menus tab – and probably check the “Automatically add new top-level pages to this menu” option at the bottom.
If it’s still not working, can you give an example of a permalink to a page you have created.
Forum: Fixing WordPress
In reply to: $wpdb->num_rows not returning what I am looking forDoes the single row contains the value of ‘Count’? Can you try either accessing that value, or creating a query that returns the actual rows where id=’$item_number’?
Forum: Fixing WordPress
In reply to: how do I move images at top of page down for textTry changing from the Visual to the Text tab at the top right. Enter some text before the
<img>tag, enter a new line, then switch back to the Visual tab.Forum: Everything else WordPress
In reply to: What does no-customize-support class do?Okay, I worked it out – in case anyone’s interested:
When the admin bar’s visible the class no-cusomtize-support is always added to the body tag. Then, if Javascript is supported, a js script runs and checks if customzing is supported, and if it is, the js changes no-customize-support to customize-support.But if you look at the page source, you only see the original classes, before the Javascript, so it will always be no-customize-support.
So I was wrong – not confusing at all!
Forum: Fixing WordPress
In reply to: How do I use "add_image_size" function for more thumbnail sizes.You could try this plugin:
http://wordpress.org/plugins/simple-image-sizes/Forum: Everything else WordPress
In reply to: What does no-customize-support class do?Okay maybe I used the wrong title – should have been “What would/does anyone use the no-customize-support class for?”
My point is that WordPress can add a lot of classes and it’s pretty clear how you would use all that I’ve seen:
Use the ‘home’ class to style the home page
Use the ‘blog’ class to style the blog page
Use the ‘single’ class to style a page displaying a single post
Use the ‘attachment-id’ class to style the attachment with the specified id….What would/does anyone use the no-customize-support class for? Given that it can be combined with the customize-background class, you obviously don’t use it as an indication that you should be ‘not-customizing’!
It’s probably not important, and best just ignored, but I’m trying to get my head round how WordPress works, and the class name seems very counter-intuitive and potentially confusing.
Forum: Themes and Templates
In reply to: Custom background php-code in funtions.php not working.Hi FCJvanderVleuten, you put the code in the wrong place. What you’re seeing on the screen is the output from
<?php body_class(); ?>and should be inside the<body>tag. Looking at your page source as it is now you actually seem to have two body tags, but neither with any classes.Right click on your webpage and select ‘View Page Source’ (if the option isn’t there, try clicking on a more ‘blank’ part of the page). You’ll see the opening few tags – DOCTYPE, html, head…body – are repeated again further down.
The class=”home blog logged-in admin-bar no-customize-support” should be inside the (only) body tag. body_class() creates the classes according to your current status, and if your custom background was working it should have added ‘custom-background’ to that list. Here’s some of the code that body_class() uses (indirectly):
if ( is_user_logged_in() ) $classes[] = 'logged-in'; if ( is_admin_bar_showing() ) { $classes[] = 'admin-bar'; $classes[] = 'no-customize-support'; } if ( get_theme_mod( 'background_color' ) || get_background_image() ) $classes[] = 'custom-background';It’s creating that list of classes, but in your case, it seems get_theme_mod( ‘background_color’ ) is false, so it’s not adding custom-background. I don’t know why.
I think maybe you need to take a step back and get a better grasp of which php is creating your webpage, and how.
Forum: Themes and Templates
In reply to: Custom background php-code in funtions.php not working.For it to take effect the body tag needs to include the
‘custom-background’ class.The standard way of doing that is to use this in the template that creates your body tag (normally in header.php):
<body <?php body_class(); ?>>Forum: Fixing WordPress
In reply to: Line break issueWell, if you look at the source of the 2nd paragraph the lines are all wrapped in ‘divs’:
<div>When JP was describing...</div>
The later paragraphs don’t have that.This should be visible in the editor if you switch from the Visual to the Text tab at the top right. Alternatively right-click on the web page and selecting ‘View Page Source’.
How the div’s got there I don’t know. Did you copy and paste from a different editor?
Forum: Fixing WordPress
In reply to: download links won't openWell this is so bizarre I think I may be imagining it – there’s a rule in your style.css:
.site-content {
float: left;
width: 65.104166667%;
}If you remove the “float: left;” the links seem to start working again!
Am I right? If so, can anyone explain how that could happen?Forum: Fixing WordPress
In reply to: Can't update WP or pluginsYou don’t sound stupid OR crazy. You sound like someone stuck with something that’s not working as it’s supposed to.
Have you tried clicking the “Check Again” button under Dashboard->Updates since the manual update?Using cpanel->File Manager is fine, forget I ever said “FTP” – more confusing than it’s worth. In cpanel, when you click on the File Manager, a little box opens. There’s a checkbox that says “Show Hidden Files (dotfiles)”. Make sure that’s checked, and continue. Ensure you’re in the root directory – the one you were in before that contains the wp-admin and wp-includes folder. There should also be a .htaccess file (an example of a hidden/dotfile). Is there a .maintenance file? If so delete it and then try the “Check Again” button in Dashboard->Updates again. Anything?
If not (this is when I get my turn to sound crazy!), create a .maintenance file by clicking on the “Create File” button, top left in cpanel’s File Manager. No need to put anything in the file. Try the “Check Again” button again. Delete the .maintenance file. “Check Update” again. Anything?
If still no progress, I can’t help thinking there may have been a problem with the Manual Update that was done for you.
In case you worry (not unreasonably) that I don’t know what I’m talking about, there’s explanation of the .maintenance file here (step 1.5):
http://codex.wordpress.org/Updating_WordPress
and a previous support topic about creating/deleting it here:
http://wordpress.org/support/topic/what-to-try-if-you-cant-find-the-maintenance-file-after-an-update?replies=2Forum: Fixing WordPress
In reply to: Can't update WP or pluginsYour ‘host’ is simply the company your paying to host your blog. The ‘server/host/wordpress installation’ are basically referring to the same thing. It’s the place where you deleted those directories, where your website is stored.
There are two main ways that you can access the host/server to delete files or to “transfer/move files [between] the host” and your own computer. One involves logging into your account and using online tools provided. The other involves using an “FTP (File Transfer Protocol) program” like FileZilla that you install on your computer. The later is generally easier BUT requires setting up, whereas the online tools are already there.
I’m sorry to say that I can’t see any way that updating the theme (manually or otherwise) is going to make your plugins/widgets start working. What exactly does “not able to access widgets or plugins” mean? The items are there in your menu? You click on the menu item and… the Plugins/Widget page gets displayed? Then..?
Forum: Fixing WordPress
In reply to: Can't update WP or pluginsI know you don’t want to hear this, but it looks to me like a manual update is the way to go. Do you know what went wrong when you tried it before?
How are you currently transferring files to/from your host – with an FTP Client program installed on your computer? Or using a method provided by your web host (which host?), such as a file manager in cpanel…?
Also what version of WordPress do you have now (it’s on the Dashboard->’At a Glance’)?