scottcarlton
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Listing for WP Job Manager] Gravity Forms doesn't workIf any one is seeking a solution to this you can also view possible issues on the git page. The author posted these as possible issues. Though these are not mine, they might be helpful for someone else.
Yes lots of people have this issue but is related to the following issues.
The hidden field was not created correctly on the form as described here: https://docs.astoundify.com/article/79-gravity-forms
Your hosting mail server caused an issue with email not being sent (server is blacklisted, PHP mail is failing) solution: install and configure https://www.ads-software.com/plugins/wpmandrill/ to send emails
You are using PHP 5.2 or lower and this is causing an issue with the plugin, solution: upgrade to PHP 5.3 or higher.Forum: Fixing WordPress
In reply to: Alphabetical Pagination on Custom Post TypeThis solution works great for individual letter index. If you are looking for this function checkout Stackoverflow here.
Forum: Fixing WordPress
In reply to: Removing CSS from LoginSorry this is the correct code for the stylesheet.
if ( basename($_SERVER['PHP_SELF']) == 'wp-login.php' ) add_action( 'style_loader_tag', create_function( '$a', "return null;" ) ); function your_login_stylesheet() { ?> <link rel="stylesheet" href="<?php echo get_bloginfo( 'stylesheet_directory' ) . '/login-styles.css'; ?>" type="text/css" media="all" /> <?php } add_action( 'login_enqueue_scripts', 'your_login_stylesheet' );
Forum: Fixing WordPress
In reply to: Dropdown Menu with Extra CodeProblem Solved! This is how I did it. Using some code from Bootstrap_Walker for WordPress by George Huger. I hope this helps anyone else looking to do the same.
class Walker_dropdown extends Walker_Nav_Menu { function start_lvl(&$output, $depth) { $indent = str_repeat("\t", $depth); if ($depth == -1 || $depth == 0) { $output .= "\n$indent<ul><div class=\"center960\">\n"; } else { $output .= "\n$indent<ul>\n"; } return; } function end_lvl(&$output, $depth) { $indent = str_repeat("\t", $depth); if ($depth == -1 || $depth == 0) { $output .= "\n$indent</div></ul>\n"; } else { $output .= "\n$indent</ul>\n"; } return; } }
Forum: Fixing WordPress
In reply to: Dropdown Menu with Extra CodeThis walker did the trick with adding a wrapper to center the li’s for me but it also adds it to the child ul as well. So need to figure out how to stop it from repeating with each child ul.
class Walker_dropdown extends Walker_Nav_Menu { // Displays start of a level. E.g '<ul>' // @see Walker::start_lvl() function start_lvl(&$output, $depth=0, $args=array()) { $output .= "\n<ul><div class=\"center960\">\n"; } // Displays end of a level. E.g '</ul>' // @see Walker::end_lvl() function end_lvl(&$output, $depth=0, $args=array()) { $output .= "<div></ul>\n"; } }
Forum: Fixing WordPress
In reply to: Dropdown Menu with Extra CodeI have been search through google and found that you can use the walker class for wp_nav_menu to change the out put of your HTML. I need to put the div center class between the ul and li to center the li because the ul is 100% width.
Now it is just about finding out more about writing the walker class to change just my second level ul.Forum: Fixing WordPress
In reply to: Dropdown Menu with Extra CodeWOW that was quick. Thanks!
I am trying to create a dropdown with a full-width background like here using css. Have been working on it for sometime.Forum: Fixing WordPress
In reply to: Client Sign-in SheetThanks, for the reply. Ya that was to expensive for my client.
Forum: Fixing WordPress
In reply to: Show/Hide div in loopHere is the link to the code that I use. Though probably not as clean as it should be, it did the job that I need. If you need any other help let us know. Good Luck.
Forum: Fixing WordPress
In reply to: Show/Hide div in loopNot prob. As soon as I get home I’ll send you a link to the code I used. Hope it will help.
Now I have the video but it’s not fullscreen.
Forum: Fixing WordPress
In reply to: Category "Nothing Found"If anyone else is having this issue. This is how I resolved the issue.
First – Custom Post Types and pages can’t have the same name. Example: My custom post type can’t be “Products” if my page is url/products.
Second – I created my page.tpl.products.php file and placed the following code in it.
$args = array( 'taxonomy' => 'product_category', 'hide_empty' => 0, 'parent' => 0 ); $terms = get_terms('product_category', $args); $count = count($terms); if ( $count > 0 ){ echo '<ul class="product-categories">'; foreach ( $terms as $term ) { echo '<li class="clearfix"> <a href="/product-category/' . $term->slug . '" title="' . sprintf(__('View all post filed under %s', 'my_localization_domain'), $term->name) . '"><img src="https://placehold.it/75x75"><h3>'. $term->name . '</h3></a></li>'; } echo '</ul>'; }
This listed my parent categories for my custom post type.
Last – I created my taxonomy.php file to display my custom post types for that category.
Hope this helps someone.
Forum: Fixing WordPress
In reply to: Prevent Username ChangeThanks for the replay. Trying to prevent users from being able to change there username under their profile while still being able to correct email address.
Forum: Plugins
In reply to: Custom Post Type Archives (menu disppear)SOLVED! Just removed the above code from function.php
Forum: Fixing WordPress
In reply to: Sidebar for Category Child PageSolved! It turned out to be pretty easy.
<?php if (in_category('press')) get_sidebar('press'); else get_sidebar('home');?>
Now I have to go research why my navigation won’t show up on my category pages.