Toolbox theme has been removed from the wordpress theme directory
Why was it removed? Can it be put back in the directory?
I am stumped on how to exclude categories from the index.php page using the excerpt tag. I used to be able to do it, but can’t find it in your theme.
]]>I’ve been searching the Forums and Codex for a few days trying about a half dozen fixes and I can’t seem to find a solution that works. All of the solutions I’m coming across seem to be 2-8 years old as well.
GOAL:
I have posts with multiple categories attached to them.
I wish to be able to select a category, select a post within that category, then have the prev-next buttons on that post work within the selected category only.
PROBLEM: No matter what I do the prev/next links go to the next chronological post regardless what category I’m in.
SOLUTIONS TRIED: Adding “TRUE” to the prev_post_link and nav_post_link parameaters. Using different plugins. Trying to write my own code excluding the categories (sample below.) Toolbox puts prev/nav links are in functions.php file although I have tried all my solutions within the single.php file too.Tried switching back and forth permalinks to /%postname%/ and /%category%/%postname%/
CURRENT SETUP: WP 3.6, theme based on Automattic Toolbox 1.4, home page static, blog page “drawings” with 14 categories. Permalinks set to /%category%/%postname%/
WEBSITE: https://www.newenglanddrawings.com/drawings
CURRENT CODE I’m Trying…
I’m NOT a programmer by any stretch of the imagination, however after reading the codex on the previous_post_link and next_post_link I thought this solution would work. I have 14 categories, so I apologize if this is long. This is what I have in the functions.php page of my theme….
/**
* Display navigation to next/previous pages when applicable
*
* @since Toolbox 1.2
*/
function toolbox_content_nav( $nav_id ) {
global $wp_query;
?>
<nav id="<?php echo $nav_id; ?>">
<h1 class="assistive-text section-heading"><?php _e( 'Post navigation', 'toolbox' ); ?></h1>
<?php if ( is_single() ) : // navigation links for single posts ?>
<?php if ( is_page('drawings') ) {
previous_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'toolbox' ) . '</span> Previous Drawing', TRUE );
}else if ( in_category('3') ){
previous_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'toolbox' ) . '</span> Previous Drawing', TRUE, '4,5,6,7,8,9,10,13,14,17,18,19' );
}else if ( in_category('4') ){
previous_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'toolbox' ) . '</span> Previous Drawing', TRUE, '3,5,6,7,8,9,10,13,14,17,18,19' );
}else if ( in_category('5') ){
previous_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'toolbox' ) . '</span> Previous Drawing', TRUE, '3,4,6,7,8,9,10,13,14,17,18,19' );
}else if ( in_category('6') ){
previous_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'toolbox' ) . '</span> Previous Drawing', TRUE, '3,4,5,7,8,9,10,13,14,17,18,19' );
}else if ( in_category('7') ){
previous_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'toolbox' ) . '</span> Previous Drawing', TRUE, '3,4,5,6,8,9,10,13,14,17,18,19' );
}else if ( in_category('8') ){
previous_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'toolbox' ) . '</span> Previous Drawing', TRUE, '3,4,5,6,7,9,10,13,14,17,18,19' );
}else if ( in_category('9') ){
previous_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'toolbox' ) . '</span> Previous Drawing', TRUE, '3,4,5,6,7,8,10,13,14,17,18,19' );
}else if ( in_category('10') ){
previous_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'toolbox' ) . '</span> Previous Drawing', TRUE, '3,4,5,6,7,8,9,13,14,17,18,19' );
}else if ( in_category('13') ){
previous_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'toolbox' ) . '</span> Previous Drawing', TRUE, '3,4,5,6,7,8,9,10,14,17,18,19' );
}else if ( in_category('14') ){
previous_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'toolbox' ) . '</span> Previous Drawing', TRUE, '3,4,5,6,7,8,9,10,13,17,18,19' );
}else if ( in_category('17') ){
previous_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'toolbox' ) . '</span> Previous Drawing', TRUE, '3,4,5,6,7,8,9,10,13,14,18,19' );
}else if ( in_category('18') ){
previous_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'toolbox' ) . '</span> Previous Drawing', TRUE, '3,4,5,6,7,8,9,10,13,14,17,19' );
}else if ( in_category('19') ) {
previous_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'toolbox' ) . '</span> Previous Drawing', TRUE, '3,4,5,6,7,8,9,10,13,14,17,18' ); }
?>
<?php if ( is_page('drawings') ) {
next_post_link( '<div class="nav-next">%link</div>', 'Next Drawing <span class="meta-nav">' . _x( '→', 'Next post link', 'toolbox' ) . '</span>' );
}else if ( in_category('3') ){
next_post_link( '<div class="nav-next">%link</div>', 'Next Drawing <span class="meta-nav">' . _x( '→', 'Next post link', 'toolbox' ) . '</span>', TRUE, '4,5,6,7,8,9,10,13,14,17,18,19' );
}else if ( in_category('4') ){
next_post_link( '<div class="nav-next">%link</div>', 'Next Drawing <span class="meta-nav">' . _x( '→', 'Next post link', 'toolbox' ) . '</span>', TRUE, '3,5,6,7,8,9,10,13,14,17,18,19' );
}else if ( in_category('5') ){
next_post_link( '<div class="nav-next">%link</div>', 'Next Drawing <span class="meta-nav">' . _x( '→', 'Next post link', 'toolbox' ) . '</span>', TRUE, '3,4,6,7,8,9,10,13,14,17,18,19' );
}else if ( in_category('6') ){
next_post_link( '<div class="nav-next">%link</div>', 'Next Drawing <span class="meta-nav">' . _x( '→', 'Next post link', 'toolbox' ) . '</span>', TRUE, '3,4,5,7,8,9,10,13,14,17,18,19' );
}else if ( in_category('7') ){
next_post_link( '<div class="nav-next">%link</div>', 'Next Drawing <span class="meta-nav">' . _x( '→', 'Next post link', 'toolbox' ) . '</span>', TRUE, '3,4,5,6,8,9,10,13,14,17,18,19' );
}else if ( in_category('8') ){
next_post_link( '<div class="nav-next">%link</div>', 'Next Drawing <span class="meta-nav">' . _x( '→', 'Next post link', 'toolbox' ) . '</span>', TRUE, '3,4,5,6,7,9,10,13,14,17,18,19' );
}else if ( in_category('9') ){
next_post_link( '<div class="nav-next">%link</div>', 'Next Drawing <span class="meta-nav">' . _x( '→', 'Next post link', 'toolbox' ) . '</span>', TRUE, '3,4,5,6,7,8,10,13,14,17,18,19' );
}else if ( in_category('10') ){
next_post_link( '<div class="nav-next">%link</div>', 'Next Drawing <span class="meta-nav">' . _x( '→', 'Next post link', 'toolbox' ) . '</span>', TRUE, '3,4,5,6,7,8,9,13,14,17,18,19' );
}else if ( in_category('13') ){
next_post_link( '<div class="nav-next">%link</div>', 'Next Drawing <span class="meta-nav">' . _x( '→', 'Next post link', 'toolbox' ) . '</span>', TRUE, '3,4,5,6,7,8,9,10,14,17,18,19' );
}else if ( in_category('14') ){
next_post_link( '<div class="nav-next">%link</div>', 'Next Drawing <span class="meta-nav">' . _x( '→', 'Next post link', 'toolbox' ) . '</span>', TRUE, '3,4,5,6,7,8,9,10,13,17,18,19' );
}else if ( in_category('15') ){
next_post_link( '<div class="nav-next">%link</div>', 'Next Drawing <span class="meta-nav">' . _x( '→', 'Next post link', 'toolbox' ) . '</span>', TRUE, '3,4,5,6,7,8,9,10,13,14,18,19' );
}else if ( in_category('18') ){
next_post_link( '<div class="nav-next">%link</div>', 'Next Drawing <span class="meta-nav">' . _x( '→', 'Next post link', 'toolbox' ) . '</span>', TRUE, '3,4,5,6,7,8,9,10,13,14,17,19' );
}else if ( in_category('19') ) {
next_post_link( '<div class="nav-next">%link</div>', 'Next Drawing <span class="meta-nav">' . _x( '→', 'Next post link', 'toolbox' ) . '</span>', TRUE, '3,4,5,6,7,8,9,10,13,14,17,18' ); }
?>
<?php elseif ( $wp_query->max_num_pages > 1 && ( is_home() || is_archive() || is_search() ) ) : // navigation links for home, archive, and search pages ?>
<?php if ( get_next_posts_link() ) : ?>
<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older Drawings', 'toolbox' ) ); ?></div>
<?php endif; ?>
<?php if ( get_previous_posts_link() ) : ?>
<div class="nav-next"><?php previous_posts_link( __( 'Newer Drawings <span class="meta-nav">→</span>', 'toolbox' ) ); ?></div>
<?php endif; ?>
<?php endif; ?>
</nav><!-- #<?php echo $nav_id; ?> -->
I would appreciate any help.
Thank you.
Toolbox 1.4 currently generates (at least) 2 errors with HTML5 validation:
(i) the <hgroup></hgroup> tags are now obsolete — see:
https://lists.w3.org/Archives/Public/public-html-admin/2013Apr/0003.html
(ii) the use of the pubdate attribute in <time> tags.
]]>Hello
I came across a problem with pagination.
I have one category in which I use the plugin WP-SNAP! to sort posts alphabetically, ie articles are available under the first letter.
Shown here pagination 1 of 2 pages, even though there should be only 3 posts. If I go to page 2 contains duplicate content.
P.S. Paging I modified in this manual (https://design.sparklette.net/ … ut-a-plugin /), but I suspect that the problem existed previously.
Any advice? Thank you.
]]>Hi Guys,
First time posting here so bear with me if I am missing anything.
So I installed Toolbox them and I havent made any changes yet (I am hosting it on local server).
So I have the basic theme loaded up and what I am trying to do is move the nav bar to the very top and have it go the full width of the page (no spaces between the edge) Please see this screenshot.
See where it says:
<nav id="access" role="navigation">
I have no idea where to put it in the general code. As I am using Google Chrome to customize before I make changes, I cant seem to find where in the actual code I need to make this change.
Any thoughts?
]]>Using Toolbox theme with WP_DEBUG set to true causes the new media library to not display anything either for the whole library or the uploaded to this post.
When trying to upload images, after upload completes and the image is attached to the post, the new media library shows an error message. The images was uploaded and attached as the main media->library shows them.
Using the old media uploader, gallery tab shows the following:
PHP Notice: Trying to get property of non-object in …/wp-content/themes/toolbox/functions.php on line 298
PHP Notice: Trying to get property of non-object in …/wp-content/themes/toolbox/functions.php on line 300
The enhanced_image_navigation function uses the global post which isn’t set in this use case. Changing the function to use the post id passed by the attachment_link filter fixes the issue.
]]>I’m trying to figure out why, all of a sudden, the main text in my page appears below the custom fields (which I had set to be “left-text-1,” “left-text-title-1”, etc).
So on the following page (https://www.kappelmanderm.com/about/) there’s the list of Accreditations, and then the body of the page and the picture are below it- but really, I want it to be to the right of it.
I don’t think I made any changes– what is happening, does anyone know? It seems like it would be easy to fix but I’m stumped.
Thanks!
]]>hi what do you use to skin the theme
if i upload this to my local testing directory im not able to see how it looks bc of some undefined fucntions ie : Call to undefined function get_header()
how can i edit the css and in real time or with refresh see the results?
will bbedit live preview do it?
]]>I set up a second menue in toolbox 1.4 which worked fine, but all pages are automaticly shown in the original navigation.
How can I prevent that?
This is the code I used:
if ( function_exists( 'register_nav_menu' ) ) {
register_nav_menu( 'primary', 'Primary Navigation Menu' );
register_nav_menu( 'secondary', 'Menue oben links' );
}
Thanks for any help
]]>I am using WP 3.5 and a modified version of this template. In default, the post comments are absolute positioned at the top of my posts, covering post content… I’ve been messing with the css for weeks, but can’t seem to get it working correctly, any help is much appreciated! here is an example of what happens after people start posting comments .. you are welcome to leave comments on posts to check it out..
https://www.humandalas.com/2012/12/peace-on-earth/
Is there any truth to this claim about the Toolbox theme? https://osvdb.org/show/osvdb/88293
It claims:
“Toolbox Theme for WordPress contains a flaw that may allow an attacker to carry out an SQL injection attack. The issue is due to the /wp-content/Themes/toolbox/include/flyer.php script not properly sanitizing user-supplied input to the ‘mls’ parameter. This may allow an attacker to inject or manipulate SQL queries in the back-end database, allowing for the manipulation or disclosure of arbitrary data.”
Can anyone elaborate on this, whether it’s been fixed, or how one can patch it?
]]>Hello!
I’ve made a brazilian portuguese translation, which is available in the following link:
https://www.mediafire.com/?py35ikgjsyspezw
I will be glad if some developer merge it in the official repositories.
]]>I’m in the process of building a custom theme on top of Automattic’s great Toolbox theme.
One conundrum I’ve run into is styling the nav section. Either part or all of the menu seems to be floating above all content… I suspected the CSS z-index property, but that doesn’t seem to be the case, as the unordered list items are not absolutely positioned.
Here is my WordPress site in progress:
https://www.thedorkreport.com/2011/12/04/visualizing-the-invisible-bright-star/
As you can see when scrolling down, the menu in the left column is appearing on top of the fixed DIV containing the site’s graphical logo. I’d like the logo to remain on top of everything. The following CSS does correct the stacking problem, but somehow renders the links inactive:
#access li {
float: none;
position: relative;
z-index: -1;
}
Has anyone run into a problem like this? Perhaps it’s a WordPress thing, and not really caused by the Toolbox theme?
Many thanks!
]]>I have two questions.
I’m looking for a way to remove the hook toolbox_content_nav('nav-above')
and am not sure how to address the passed variable.
Also I have some html I’m inserting after the_content
via add_filer.
function burn_single_addsocial($content) {
/**
* On single pages insert social media links
*
*/
if(is_single()) {
$content .= '<div class="sociallist">
<span class="twitter-inlist">...</span>
<span class="google-inlist">...</span>
<span class="fb-inlist">...</span>
</div>';
}
return $content;
}
add_filter('the_content', 'burn_single_addsocial');
I’d like to move it after the hook toolbox_content_nav('nav-below')
but am not sure how to address the passed variable. Any thoughts.
I’m working on a child theme for Toolbox, I would like to add the editor-style.css to the child theme but the Toolbox theme doesn’t seem to use it.
Can anyone tell me how to update the functions.php in my child theme to allow the editor-style.css to work.
Thanks.
]]>Hey there,
I’ve been developing a theme for a site hosted on a university network. I’ve been using Toolbox as a starter theme, and have developed it without issue locally. This evening I went to push it onto the development server I have access to and ran into some issues.
The university has some fairly strong restrictions on the platforms it will run, and upgrades to those platforms are not swift, by any measure. Currently they are running WP 3.0.1, which to my surprise, will not run a toolbox based theme.
Is there a version of toolbox that is compatible with 3.0.1?
Thanks!
]]>Hi, hope that someone can give me a hint on how can i add more widgets to a child function.php file?
I used the following code, this works on the parent theme but not in the child theme.
<?php
function sandbox_widgets_init() {
if ( !function_exists('register_sidebars') )
return;
if ( function_exists('register_sidebar') )
register_sidebar(array(
'name' => 'Home Module A',
'before_widget' => '<div align="center">',
'after_widget' => '</div>',
'before_title' => '<h2 class="txtalt">',
'after_title' => '</h2>',
));
}
?>
Thanks in advance for your effort and time.
]]>Hi,
I’m using toolbox 1.1 then I’d like to update to 1.2 by myself, how can I do that?
Thanks
]]>I built a child theme locally using Toolbox and was in for quite the surprise when I uploaded it to a server and ran it through crossbrowsertesting.com. My header was collapsing in certain browsers causing the navigation to be unusable. A few hours of headaches later I finally realized that the header element isn’t set to display: block anywhere in the Toolbox CSS (that I can see). I made the change and it seems to be fine for the most part now (Firefox 3.0.6 and Ubuntu 8.10 don’t quite get it right).
Why aren’t all the HTML5 elements set to display:block? That’s one of the first things I learned about when starting into HTML5.
]]>I have a custom menu that links to some pages as well as a category archive.
When I try to edit the category.php file it seems to have no effect on the rendering of my category.
I tried doing category-slug.php first but that didn’t work, so I deleted it and tried to edit category.php directly. No effect.
Then I went a bit mad and tried editing archive.php. No luck with that either…
Does toolbox use a different system to most themes? I used the category-slug.php method with thematic and it worked fine.
Oh, and I’ve cleared the browser cache several times ; )
Any ideas?
]]>I’m a bit confused as to how I translate the Toolbox theme, any pointers would be greatly appreciated. ??
]]>