johnhshepard
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to change menu text colour in theme 1039Hi nitarazvan1,
Just glanced at your site and it looks like you figured this out. If so, would you mind posting your solution and marking the topic resolved?
If you’re still having issues, let me know and I’d love to help.
-John
Forum: Fixing WordPress
In reply to: Blog media not moving to FaceBook with textHi Capt. Brigg,
Are you using a plugin to publish your WordPress posts to Facebook? If I can recreate your setup on my end, I can test some settings to see if we can make it do what you what it to.
I also came across this article which might be helpful: https://www.elegantthemes.com/blog/tips-tricks/how-to-post-to-facebook-from-wordpress
I know its been a while since you posted so let me know if you’ve already solved it. Otherwise, I’d love to help you get it figured out.
Regards,
JohnForum: Plugins
In reply to: [Add To Content] Doubling upScroll to the bottom of “add-to-content.php” and find the following block of code:
function add_to_content001($content) { $options = get_option( 'atc_settings' ); if( ( 1 == ($options['option']['one']) ) && ( 1 == ($options['top']['check']) ) && is_single() ){ $content = '<div style="color:'.$options['top']['tc'].';background-color:'.$options['top']['bc'].';background-image: url('.$options['top']['upi'].');">'.$options['top']['text'].'</div>' . $content; } if( ( 1 == ($options['option']['one']) ) && ( 1 == ($options['bottom']['check']) ) && is_single() ){ $content = $content . '<div style="color:'.$options['bottom']['tc'].';background-color:'.$options['bottom']['bc'].';background-image: url('.$options['bottom']['upi'].');">'.$options['bottom']['text'].'</div>'; } return $content; } add_filter('the_content', 'add_to_content001'); function add_to_content002($content) { $options = get_option( 'atc_settings' ); if( ( 1 == ($options['option']['two']) ) && ( 1 == ($options['top']['check']) ) && is_page() ){ $content = '<div style="color:'.$options['top']['tc'].';background-color:'.$options['top']['bc'].';background-image: url('.$options['top']['upi'].');">'.$options['top']['text'].'</div>' . $content; } if( ( 1 == ($options['option']['two']) ) && ( 1 == ($options['bottom']['check']) ) && is_page() ){ $content = $content . '<div style="color:'.$options['bottom']['tc'].';background-color:'.$options['bottom']['bc'].';background-image: url('.$options['bottom']['upi'].');">'.$options['bottom']['text'].'</div>'; } return $content; } add_filter('the_content', 'add_to_content002'); function add_to_content003($content) { $options = get_option( 'atc_settings' ); $multiCategories= $options['option']['three']; // move into usable array $multiCategoriesArray=explode(',',$multiCategories); if( in_category( $multiCategoriesArray ) && ( 1 == ($options['top']['check']) ) && is_single() && ( $options['option']['three'] != '')){ $content = '<div style="color:'.$options['top']['tc'].';background-color:'.$options['top']['bc'].';background-image: url('.$options['top']['upi'].');">'.$options['top']['text'].'</div>' . $content; } if( in_category( $multiCategoriesArray ) && ( 1 == ($options['bottom']['check']) ) && is_single() && ( $options['option']['three'] != '')){ $content = $content . '<div style="color:'.$options['bottom']['tc'].';background-color:'.$options['bottom']['bc'].';background-image: url('.$options['bottom']['upi'].');">'.$options['bottom']['text'].'</div>'; } return $content; } add_filter('the_content', 'add_to_content003'); function add_to_content004($content) { $options = get_option( 'atc_settings' ); if (!empty ($options['option']['four'] )) $multiCategoriesx= $options['option']['four']; // move into usable array $multiCategoriesArrayx=explode(',',$multiCategoriesx); if( ! in_category( $multiCategoriesArrayx ) && ( 1 == ($options['top']['check']) ) && is_single() && ( $options['option']['four'] != '')){ $content = '<div style="color:'.$options['top']['tc'].';background-color:'.$options['top']['bc'].';background-image: url('.$options['top']['upi'].');">'.$options['top']['text'].'</div>' . $content; } if( ! in_category( $multiCategoriesArrayx ) && ( 1 == ($options['bottom']['check']) ) && is_single() && ( $options['option']['four'] != '') ){ $content = $content . '<div style="color:'.$options['bottom']['tc'].';background-color:'.$options['bottom']['bc'].';background-image: url('.$options['bottom']['upi'].');">'.$options['bottom']['text'].'</div>'; } return $content; } add_filter('the_content', 'add_to_content004');And replace with the following:
function add_to_content001($content) { $options = get_option( 'atc_settings' ); if (is_page()) { if (1 == ($options['option']['two'])) { if ( 1 == ($options['top']['check']) ) { $content = '<div style="color:'.$options['top']['tc'].';background-color:'.$options['top']['bc'].';background-image: url('.$options['top']['upi'].');">'.$options['top']['text'].'</div>' . $content; } if ( 1 == ($options['bottom']['check']) ) { $content = $content . '<div style="color:'.$options['bottom']['tc'].';background-color:'.$options['bottom']['bc'].';background-image: url('.$options['bottom']['upi'].');">'.$options['bottom']['text'].'</div>'; } } } elseif (is_single()) { if (1 == ($options['option']['one'])) { //look at included and excluded Categories if (!empty($options['option']['three'])){ $multiCategoriesInclude= $options['option']['three']; // move into usable array $multiCategoriesIncludeArray=explode(',',$multiCategoriesInclude); if (in_category($multiCategoriesIncludeArray)) { if ( 1 == ($options['top']['check']) ){ $content = '<div style="color:'.$options['top']['tc'].';background-color:'.$options['top']['bc'].';background-image: url('.$options['top']['upi'].');">'.$options['top']['text'].'</div>' . $content; } if ( 1 == ($options['bottom']['check']) ){ $content = $content . '<div style="color:'.$options['bottom']['tc'].';background-color:'.$options['bottom']['bc'].';background-image: url('.$options['bottom']['upi'].');">'.$options['bottom']['text'].'</div>'; } } } elseif (!empty ($options['option']['four'] )){ $multiCategoriesExclude= $options['option']['four']; // move into usable array $multiCategoriesArrayExclude=explode(',',$multiCategoriesExclude); if (!in_category($multiCategoriesArrayExclude)) { if ( 1 == ($options['top']['check']) ){ $content = '<div style="color:'.$options['top']['tc'].';background-color:'.$options['top']['bc'].';background-image: url('.$options['top']['upi'].');">'.$options['top']['text'].'</div>' . $content; } if ( 1 == ($options['bottom']['check']) ){ $content = $content . '<div style="color:'.$options['bottom']['tc'].';background-color:'.$options['bottom']['bc'].';background-image: url('.$options['bottom']['upi'].');">'.$options['bottom']['text'].'</div>'; } } } else { if ( 1 == ($options['top']['check']) ){ $content = '<div style="color:'.$options['top']['tc'].';background-color:'.$options['top']['bc'].';background-image: url('.$options['top']['upi'].');">'.$options['top']['text'].'</div>' . $content; } if ( 1 == ($options['bottom']['check']) ){ $content = $content . '<div style="color:'.$options['bottom']['tc'].';background-color:'.$options['bottom']['bc'].';background-image: url('.$options['bottom']['upi'].');">'.$options['bottom']['text'].'</div>'; } } } } return $content; } add_filter('the_content', 'add_to_content001');Let me know how that works for you. And be sure not to update the plugin because it will overwrite these changes.
Forum: Plugins
In reply to: [Add To Content] Doubling upThe file is called “add-to-content.php” and is located in wp-content -> plugins -> add-to-content.
Forum: Plugins
In reply to: [Add To Content] Doubling upHi Maria,
There is a bug in this plugin that causes the problem you’re having. If you’re comfortable editing the source code of the plugin, I can send you the appropriate code to solve your issue (and tell you where to add it).
Let me know if you’d like the code or if you’d prefer to find a different plugin.
–John
Forum: Fixing WordPress
In reply to: Profile Form – 8 Item Display Limit?Hi rrr431. I don’t think I fully understand your question. Can you please provide a little more information?
- A link to your site.
- Are you using any plugins to add elements to the default profile form?
- What theme are you using? Have you tried changing your theme to see if the 8 item display limit is theme related?
Sorry for my confusion. I’ll be looking for your response.
Forum: Fixing WordPress
In reply to: Publish blog post to multiple WP sites..A plugin is probably going to be the easiest solution. I would test WP RSS Aggregator and RSS Post Importer and see which one better fits your needs. You’ll probably have to pay for the premium features to accomplish your goals, though.
Forum: Fixing WordPress
In reply to: Edit theme on online siteI think a maintenance plugin would do the trick. I’ve been happy with WP Maintenance Mode in the past, although I don’t currently use it because I don’t have the need. It will allow you to customize the page displayed to visitors while in maintenance mode, so you can continue showing your basic information.
Good luck with your new site!
Forum: Fixing WordPress
In reply to: help with using hashtags in menuHi br0ther_bruce, welcome to WordPress.
It sounds like you just need to add a custom link to your menu. Check out the documentation here (scroll down to “Custom Links”) regarding custom menu links. I’ve copied the relevant portions below.
From the Codex:
Custom links allow links defined by you that don’t fit into the other types of menu items.
URL
Enter the URL of the custom link.
Label
Enter the label describing the custom link URL.
Add to Menu
Click this button to add this as a Custom item to the menu.Once added to the menu, the item will display to the right with the label, the word Custom and a configuration arrow that can be used to change the URL or Label as well as Remove the custom link from the menu.
____
Add a menu item with the URL: http://www.mysite.com.au/newstaging/#intro and a label of “Intro.” As long as you have assigned the CSS ID “intro” to the appropriate section, you should be good to go.Does this answer your question?
Forum: Plugins
In reply to: [Add To Content] How to have Categories to Exclude?Hi Ken. I just started using this plugin and found the same bug you mentioned. I’ve figured out a way to fix it if you’re still interested (and comfortable editing the code). Let me know if you’re still having issues and I’ll be happy to help.
Forum: Plugins
In reply to: [Add To Content] Content duplicatedHi Petar. I just started using this plugin and found the same bug you mentioned. I’ve figured out a way to fix it if you’re still interested (and comfortable editing the code). Let me know if you’re still having issues and I’ll be happy to help.
Forum: Plugins
In reply to: [Add To Content] add padding to contentI just started using this plugin and noticed your question. Sorry if it’s so late that it doesn’t matter any more.
In case anyone stumbles across this in the future, the content boxes accept HTML so you can add padding directly into the box. For example, to add 20px to all sides, wrap your text (“Example Top Text” in this case) in the following HTML tag:
<p style="padding:20px;">Example Top Text</p>Hope that helps.
Forum: Fixing WordPress
In reply to: How to recenter google calendar widget on pageAnd remove the background images from the body so the calendar appears to fit on the page.
.page-id-27 #main{ background: none; } .page-id-27 .gray_line{ background: none; }