Digital Raindrops
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: cant keep items out of menu for usersThere are a number of hide admin menus, and roles and capabilities plugins, have a search in the plugins.
The top menubar could also be hidden for non admin users.
UNTESTED:/* Get rid of the admin bar for other users */ if ( is_user_logged_in() && !current_user_can( 'manage_options' ) ) { add_filter('show_admin_bar', '__return_false'); }HTH
David
Forum: Themes and Templates
In reply to: [Theme: Brunelleschi] Removing Blue Dots Under SliderHi,
They are a part of the flexslider which is now a part of WooThemesTo Change The Image:
The dots are an image in the themes folder ‘/inc/theme/’To Remove Them:
There is in the theme’s folder /js/ the script for the slider.You could try editing the file jquery.flexslider-min.js adding controlNav: false,
flexslider({ animation: "slide", controlsContainer: ".flex-container"});flexslider({ animation: "slide", controlNav: false, controlsContainer: ".flex-container"});Or you could hide the div, at the end of style.css!
.flex-control-nav { display: none !important; }HTH
David
I read in the next version that we will be able to change the header and background setting to be more dynamic, header sizes, use images from media gallery etc: instead of uploading, so the $args would have been added for these calls.
If the debugger is not active then there will be no error in older themes.
You just need to update your theme or plugin to make it current, looks like we will be able to add our own values in functions.php.
Header $args:
$defaults = array( 'default-image' => '', 'random-default' => false, 'width' => 0, 'height' => 0, 'flex-height' => false, 'flex-width' => false, 'default-text-color' => '', 'header-text' => true, 'uploads' => true, 'wp-head-callback' => '', 'admin-head-callback' => '', 'admin-preview-callback' => '', );Background $args:
$defaults = array( 'default-image' => '', 'default-color' => '', 'wp-head-callback' => '_custom_background_cb', 'admin-head-callback' => '', 'admin-preview-callback' => '', );Regards
David
Forum: Fixing WordPress
In reply to: nav_menu doesn't appear in homepageI don’t think that problem is caused by the bad HTML
View Source Code, copy it and paste it into the validator and you get 74 errors, with unclosed tags!
Is the home page calling the same header file, the nav menu call has no conditional code in header.php, which may mean a different header file for the homepage?
Like:
header-home.phpget_header('home');HTH
David
Forum: Fixing WordPress
In reply to: nav_menu doesn't appear in homepageLooking at the header.php code you have a lot of unclosed tags, as Hfort has said it looks like bad HTML with unclosed tags!
No closing tag
</div><div id="catmenucontainer" class="auto-style2">Images are not closed:
<img alt="" class="" longdesc="" src="">Should be closed:
<img alt="" class="" longdesc="" src="" /> <img alt="" class="" longdesc="" src=""></img>Also do you have two header files one without the menu?
HTH
David
Forum: Fixing WordPress
In reply to: Custom Menu breaks when logged inCompare the links or spot the difference:
Our Dojo: aikivictoria.ca/dev/our-dojo/our-practice/
Our Practice: aikivictoria.ca/our-dojo/our-practice/Tip:
For no-page top level menu items, use the URL type as you have done, change the url:
URL = h ttp://aikivictoria.ca/dev/our-dojo/our-practice/
to a single hash # character
URL = #
HTHDavid
Forum: Fixing WordPress
In reply to: nav_menu doesn't appear in homepageHi,
You have to create a custom menu,
Go to Appearance > Menu, and see if the custom posts types are there, if they are create a menu and add them, then assign the menu to the template location.If you are not familiar with Custom Menu’s then have a look at the screenshot, create a new menu [ + ], add the menu items, assign it to a template location.
Screenshot the custom posts are ‘Information Posts’ and been added to the custom menu!
Forum: Fixing WordPress
In reply to: nav_menu doesn't appear in homepageHi,
Do you mean that the posts cannot be added to a custom manu, if so just add a new argument:
'show_in_nav_menus' => true,HTH
David
Forum: Fixing WordPress
In reply to: wp_query orderby random not workingThat is strange because the core query code is using:
$orderby = 'RAND()';I use this in a template page of posts to reverse the posts in a list:
<?php query_posts($query_string . "&order=ASC"); ?>So it should reorder them as well.
Just a suggestion remove it from the arguments and try this just before the have_posts(), it should apply a filter and return the lines and query the returned recordset.
<?php query_posts($query_string . "&orderby=rand"); ?> <?php if ( have_posts() ) : ?>EDIT:
Tested the above in a twenty eleven child theme’s archive.php and when I viewed the monthly archive the posts were random!HTH
David
Forum: Fixing WordPress
In reply to: Installing A Forum On My WebsiteForum: Fixing WordPress
In reply to: Add Excerpt as meta description without and tagsPosted while you were posting, see you have resolved it π
I was going to suggest:
<meta name="description" content="<?php strip_tags( the_excerpt() ); ?>" />HTH
David
Forum: Fixing WordPress
In reply to: Output Different Custom Fields SeparatelyTry:
<?php global $post; ?> <div class='a'><?php echo get_post_meta($post->ID, 'customfiled-a', true); ?></div> <div class='b'><?php echo get_post_meta($post->ID, 'customfiled-b', true); ?></div>HTH
David
Forum: Fixing WordPress
In reply to: Output Different Custom Fields SeparatelySnap!
Get single post meta!
get_post_meta( $post_ID, $key , $single );
<div class='a'><?php echo get_post_meta(get_the_ID(), 'field-a', true); ?></div> <div class='b'><?php echo get_post_meta(get_the_ID(), 'field-b', true); ?></div>HTH
David
Forum: Fixing WordPress
In reply to: Edit this code to list all users instead of just current user?I think it should be as easy as removing the current user filter
'user_id' => $current_user->ID,Change to:
// Remarked by Elliot 'user_id' => $current_user->ID,For information, the comment filter is this bit, so it should show the latest comments:
‘status’ => ‘approve’HTH
David
Forum: Fixing WordPress
In reply to: display a post at certain times