2DMonkey
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: open comments box on my home pageHi Whitelight,
To create a new file you will need a FTP client to access the files in your template – I would recommend FileZilla – setup instructions here.
Or, follow these instructions to create a new theme file without FTP access.
Forum: Fixing WordPress
In reply to: open comments box on my home pageHi whitelight,
I have downloaded the same template so I can see the files you are working with now.
1. To amend the comments box on your homepage, you need to replace the code I suggested before:
<?php comment_form(); ?>With the following:
<?php include('comments_home.php'); ?>Then create a new file in your template directory called ‘comments_home.php’. Open it and paste in the following:
[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]
The submit button should be on show because otherwise users cannot easily submit their comment – it also helps for accessibility.
2. To remove the RSS subscribe links, open your sidebar.php file and remove all of the following:
<div id="subscribe"> <h3 style="font-size: 150%;font-weight:100;"><img alt="RSS" src="<?php bloginfo('template_directory'); ?>/images/feed-icon-16x16.gif" /> Subscribe</h3> <p><a href="<?php bloginfo_rss('rss2_url') ?>">Entries RSS</a> | <a href="<?php bloginfo_rss('comments_rss2_url') ?>">Comments RSS</a></p> </div>Sorry for the long response. I hope that makes sense. If not, please respond.
Thanks.
Forum: Themes and Templates
In reply to: Generate a shortcode from a themeSeems a long way round.
Can you explain in a bit more detail – I’m not totally sure what you are trying to do…
Forum: Fixing WordPress
In reply to: Custom menuIn very basic form this will ensure that the menu is only displayed when NOT on the homepage.
<?php if ( is_home() ) { // This is a homepage } else { wp_nav_menu(); } ?>Forum: Fixing WordPress
In reply to: open comments box on my home pageHi whitelight,
It is possible to show a comments box on the homepage but it would show up after each and every article because it’s part of the WordPress Loop.
Your homepage is slightly different because it isnt really a ‘page’ – it uses the WordPress Loop to show a list of the latest posts. Generally users would click on an article to read it more about it – and then they would be able to comment on it.
The reason why the comment box is displayed on your About page is because it is a unique page, the same as a unique post.
If you want to show the comments box after each article on the homepage, open your index.php file and look for the loop. It usually starts with:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>And ends with:
<?php endwhile; else: ?> <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> <?php endif; ?>Between these two you should look for:
<?php the_content(); ?>Paste the following directly after this:
<?php comment_form(); ?>Save and test. You should now see a comments box after each article on the homepage. If this wasn’t quite what you were looking for let me know – I’m just guessing 🙂
Forum: Fixing WordPress
In reply to: User can only edit single pageThere are a number of different roles that WordPress users can take.
By default new users will be setup as subscribers which means they only have read access. The next level up is a contributor – this role can create and edit their own posts.
You can change the default user role (from subscriber to contributor) on the Settings > General Settings page in the WordPress admin.
Forum: Fixing WordPress
In reply to: View Admin Rights?When logged into the WordPress admin area, go to the users page. This will show you a list of all site users and their role. If you cannot see this page then you are probably not an administrator. You should be, so ask your developer to change your permissions.
More info about users levels and their respective permissions
Forum: Fixing WordPress
In reply to: error messageThis could be gaps in your functions.php or header.php files. Check that there are no spaces between ?> and <? tags.
In the WordPress admin, go to Appearance > Editor. Assuming you are not using any page templates you need to edit your index.php file. Somewhere in that file you will find the WordPress loop.
You should be able to find the following code:
<h2 class="entry-title"><a href="<?php the_permalink()?>" title="Permalink to <php the_title();?>" rel="bookmark"><php the_title();?></a></h2>That needs to be moved further down the loop and placed directly after:
<div id="text1">Forum: Fixing WordPress
In reply to: Comment OptionYou could remove the comment box altogether by deleting it from your page.php and single.php files. I don’t know which theme you are using, but if you can find the code below, deleting it will remove the comment box for you.
<?php comments_template(); ?>Otherwise it’s a case of going through each post individually.
Forum: Networking WordPress
In reply to: How to undo multisiteOpen wp-config.php at the root of your WordPress directory and remove the following:
define( 'MULTISITE', true ); define( 'SUBDOMAIN_INSTALL', false ); $base = '/'; define( 'DOMAIN_CURRENT_SITE', 'localhost' ); define( 'PATH_CURRENT_SITE', '/' ); define( 'SITE_ID_CURRENT_SITE', 1 ); define( 'BLOG_ID_CURRENT_SITE', 1 );Finally, change:
define('WP_ALLOW_MULTISITE', true);To:
define('WP_ALLOW_MULTISITE', false);Forum: Fixing WordPress
In reply to: Placing 'page' under a menu itemGlenna,
When logged into the WordPress admin area you can customise your menus by going to Appearance > Menus. After setting up your menu you can add a links to your other WordPress pages or to an external link.
Forum: Themes and Templates
In reply to: how to hide secondary menu from home page<?php if ( is_home() ) { // This is a homepage } else { // This is not a homepage } ?>