The widget does not show on site
-
I can’t get the daily quote widget to work, despite reading and trying all the trouble shooting. I must be doing something wrong. Help!
-
This topic was modified 6 years, 6 months ago by
gobwriters.
-
This topic was modified 6 years, 6 months ago by
-
Well let’s review step by step.
1) Did you visit “Settings” and click “Save”? This inserts the basic theme.
2) I am guessing you successfully added a quote section but did you select “All Categories” as a test?
3) Do keep you do NOT want blank lines between quotes.
1) In settings under general I clicked save changes.
2) Added a quote section and selected all categories.
3) No blank lines and I tested with 10+ quotes that the program repetitively filled in for the year.I also removed and added the widget after all changes. I also attempted to insert as a text widget and added the function php after getting a php inserter plugin.
I think my theme might be somehow still connected to wordpress.com – I migrated over to www.ads-software.com a while back, with outside help so I’m not exactly sure how it was set up. Could this be a problem?
1) Did you place the shortcode filter into your theme’s functions.php file?
2) Do other shortcodes on your site work?
It is possible your theme is an issue as you can disable shortcodes.
Yes I did place the shortcode that you had listed in the help area – that’s why I got a plugin that does that for me. Funny thing was that I had other shortcode in a text widget and somewhere in the process of doing all this it stopped working – but that was okay since it was a shortcode that showed my quotes posts in the side bar … which is what I got this plugin to replace.
I’m talking about the functions.php one as well as the shortcode to put in a text widget.
Did you disable the other plugin?
It wasn’t a plugin, it was a text widget coded to show quote category posts in the sidebar and yes I disabled it because it started showing the code and not the quote on the website. Plus I wanted to post quotes through cleverwise daily quotes.
Well it sounds like shortcodes aren’t working correctly. I am wondering if shortcodes have been disabled on your site. That is possible in the theme setup.
But they were working for months in the text widget. Until I started playing with things for this plugin. Is there someplace I should check to see if they are disabled? I do have other short codes however that are working in a menu item in customization that is called additional css. I think I need to get a programming degree:)
Well text widgets are not the same as shortcodes. They are different WordPress systems.
I just want to triple check:
Did you do the following to your theme’s functions.php file (save and upload)?
////// Process shortcodes add_filter('widget_text', 'do_shortcode');
If so make sure there isn’t something like:
////// Process shortcodes remove_filter('widget_text', 'do_shortcode');
I do know it can get confusing shortcodes turned on.
-
This reply was modified 6 years, 6 months ago by
Me.
I put
add_filter(‘widget_text’, ‘do_shortcode’);
in “My Custom Functions” plug in.
Then what else am I supposed to do? What I did was put
[cw_daily_quotes cw_ds_id=”1″]
in a text widget because I thought the two above work together.
I only did this after I couldn’t get the daily quotes section widget to show up at all.I am not sure using “My Customs Functions” plugin is a good idea. Also based on what you are saying the shortcode isn’t working.
It really should be added to the functions.php file inside your theme and not through another plugin.
I couldn’t figure out how to do that – where/how do I find the functions.php file?
Okay, to be clear. The widget for daily quotes is not working AND the text widget method isn’t working because the shortcode isn’t working. And the shortcode isn’t working because I need to find out how to find the functions.php and input the filter code …
Okay let’s say your theme is named “gobwriters” that would be in wp-content/themes/
So if you look inside your website files usually there is public_html or html directory/folder and inside that you’ll see that wp-content directory.
So: wp-content/themes/gobwriters/functions.php
You need to edit that file or have someone edit that file to add that shortcode filter. However make a backup copy of functions.php so in case something goes wrong you may restore it!
The shortcode part is what trips a lot of people up. However shortcodes are used for many plugins and if you turn it on once it will be on for all. In other words shortcodes are on or off globally.
Once this is on unless another plugin is removing shortcodes the quotes should work.
Okay I found the file under a manage themes area editor on the menu and it warns me very sternly to backup the functions.php first … as did you. Makes sense, but how do I make a back-up copy?
Then I promise I will stop bugging you … unless you will let me contact you for dialogue tips in my future book where people talk in code:)
-
This reply was modified 6 years, 6 months ago by
- The topic ‘The widget does not show on site’ is closed to new replies.