Most WordPress themes in 2014 are widgitized where you go to “Appearance” >> “Widgets” and drag and drop various widgets on the left to your themes sidebar(s) on the right, creating a WordPress blog precisely how you want it. The simplest of WordPress themes have a single widget area: like a left sidebar where widgets can be dragged to and the 12 WordPress default widgets: Archives Widget Calendar Widget : HIGH SEO Damage Categories Widget Custom Menu Widget Meta Widget : LOW SEO Damage Pages Widget Recent Comments Widget : MEDIUM SEO Damage Recent Posts Widget RSS Widget Search Widget Tag Cloud Widget Text Widget The Stallion Responsive Theme includes no fewer than 21 additional custom WordPress widgets (Stallion also […]
Continue Reading WordPress Widgets
How Do WordPress Widgets Work With the Talian SEO Theme?
Greetings David.
One more question on the Talian WordPress template.
When I add a widget from the widget list, I look at my site and it adds the widget to the sidebar but removes everything else (categories, pages etc)
This happened in the past before the 2.7.1 update as well. Before I was just testing so it did not matter if I couldn’t use the widgets but now I want to add a RSS image and text that links up with my feedburner feeds page.
Oh, there was one more thing, In the theme editor I removed code so archives would not show in my left sidebar but the archives still show only on my homepage. When I click a category or page the archives do not show on the sidebar.
I think it is possible that I messed around too much and may have to reload the last template update to get back some default code and then try removing the archives from that point. I really want to get rid of the archives links as per your SEO advice.
Hope you can help.
How Do WordPress Widgets Work With the Talian SEO Theme?
How WordPress Widgets Work
Hey Clayton,
You’ve misunderstood how widgets work, when you add menu widgets you have to add ALL the widgets you want to show on the two Talian menus. So if you want a menu setup like mine you’d add to sidebar 1 these widgets:
Translators GAT
Theme Switcher (custom coding)
Categories GAT
Popular Articles GAT
Recent Comments Gat
Click save changes and sidebar 1 will now show all those menu items.
Do similar for sidebar 2 with
Adverts Clear BG GAT
Recent Articles GAT
etc…
You can setup your two menus with whatever menu items you use and leave the rest out.
This will over write any changes you made to the sidebar.php file, to get any custom code work on to your sidebars now you’ll need to add it to the functions.php file in the widget format (has some surrounding code).
If you compare sidebar.php to some of the coding in functions.php you’ll see all the sidebar code is there as well, this is the widget form of those menu items plus the extra clear background AdSense ad unit code to give more ad options.
With regards to the archive coding problem, once you use widgets as described above all changes within sidebar.php file is ignored. When you learn how to use widgets correctly this will solve your problem: don’t add the Archives widget to one of the menus, no need to mess around with the sidebar.php file at all (or any code work to not show it).
David Law
How WordPress Widgets Work
AdSense CTR is Up
Thank you very much. I can also report that after moving content to the new Talian Template, my CTR is going up. I still have lots of content to move over prior to getting the full effect.
How to Remove WordPress Register Link From Meta Widget
Wow! Looks like you’ve been busy since my last visit! I’ve tried to remove the ‘register’ link from the meta section but no luck. I want people to register so must keep it optioned in the WP dashboard but don’t want it on view to the general public, just those I invite.
In left_sidebar.php I removed this:
but it didn’t make any difference. Help please!
Also I did’nt know about the google nofollow thing so I’m looking forward to your updated version 4! I’m always running latest wordpress & as far as I know I’ve had no problems with the automatic upgrade option & my current theme.
How to Remove WordPress Register Link From Meta Widget
Adding PHP Code to WordPress Comments
The code didn’t come through, but if you are using widgets for your menu (most people do now) the sidebar files are not where the code you need to edit is.
Assuming you are using widgets edit functions.php, look for-
And delete it.
That’s my SEO version of the register link which in Talian version 3 is nofollow. In Talian version 4 (which I hope to release this month) it’s a post form which should help with the automated spam bots that signup to WordPress blogs via register links showing. Since it’s a post form they shouldn’t find it anymore.
For pasting code snippets on a page using the code tag like this:
Is meant to work, but it fails a lot of the time. For the above PHP code I used pre tags:
to surround the PHP code and it seems to work better, pre will add spaces sometimes like there was no space before the ? in the code above.
David Law
Adding PHP Code to WordPress Comments
Adding Code to WordPress functions.php Didn't Work
Hello again, not using any widgets but tried your functions fix without luck. Here’s the left sidebar code I deleted with spaces, located almost at bottom of page:
Any other ideas?
How to Remove WordPress Login Links
Try adding pre /pre (with the > signs) tags around the code you want to show, should come through then. Like this.
I took a look at your site and I only see a login link (wp-login.php, will be the Site Admin link when logged in) which you’d still expect to see after removing the register link code.
If you don’t want the login link either, remove the login link code as well (remove the entire meta code if you like and remember to type wp-login.php after your domain name to login).
Regarding widgets I strongly advise learning how to use them (very easy). You could then remove the meta code completely without having to ever edit your code. The only major issue for you as someone who edits the Talian theme is you might have to create some custom widgets for the stuff you’ve added to the sidebars. Rather than the sidebar files holding the code it’s in the function.php file when you use widgets.
I customize the themes all the time for specific sites, which makes updating a site a pain in the ass! In Talian version 4 I’ve made adding custom widgets much easier to make my life easier when updating 50+ WordPress installations.
Instead of editing the functions.php file (where you would put a widget and a lot of other code) I’ve added an extra file custom-widgets.php which holds only custom widgets. By using this file when Talian is updated it won’t remove custom sidebar coding since it will be in a separate file.
David Law
How to Remove WordPress Login Links
Warning: array_key_exists() [function.array-key-exists]:
keep getting an error message:
Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /home/online03/public_html/wp-includes/widgets.php on line 858
only happens with this theme. any work around?
Warning: array_key_exists() [function.array-key-exists]: Fix?
I checked your site for the widget error and I saw two error messages, one above each sidebar.
Looked through Google and WordPress forums for this problem, found nothing on the WordPress forums, but there’s a LOT of pages indexed in Google with this error message running a lot of different themes. Many of the site with this error indexed in google don’t have the error when you load the site (either temporary error or they fixed it).
Couldn’t find any page discussing this error! When I went back to your site 10 minutes later the error was no longer there.
Did you fix it or did it fix itself?
If the latter would be something at your end (server issue for example).
Have another customer with another issue and by luck noticed the domain she is testing Talian on had a sub-domain (she’s running WordPress multisite) had this error message. I think the issue with her installation is host related (not enough server resources), but could be related to your problem and if you did find a fix would appreciate a point in the right direction.
Let me know if you have any more issues.
David
Warning: array_key_exists() [function.array-key-exists]: Fix?
Fixed WordPress Error Message
Hello David,
I did fix it myself. Since there are no widgits installed or nessessary, I went to the public_html/wp-includes and edited the PhP code. I removed the lines in question (858-860?), and it worked out great :D
The page was perfect on the main site, but on a sub-domain it gets screwed up.
HTH
Hacking Core WordPress Files
Glad you got it to work, little concerned it required hacking core WordPress files. I’ve not tested Talian 05 on a WordPress multisite using sub-domains (didn’t cross my mind to use that option). I’ll give it a test over the next few days see if it’s an issue with sub-domains.
I’m thinking about rewriting the widget code for Talian, there’s a newer way to generate custom widgets now that allow users to set titles of widgets and other options and for some of the widgets that are specific to the theme would be useful to have that option.
Thanks for letting me know how you worked around the problem. If I find an issue I’ll post it on the Talian sales page and drop you an email with details.
David
Hacking Core WordPress Files
How to Remove Default WordPress Widgets?
Hello, Please i just bought and installed a copy of Talian O5, How do I get to remove the Categories, Meta, Links and RSS widgets on the right side of my blog. Thank you
How to Remove Default WordPress Widgets by Adding Widgets
Use the widgets menu under “Appearance” >> “Widgets” to ONLY add the sidebar items (widgets) you want on the two sidebars.
Many WordPress Themes have default widgets built in, after you drag and drop your first widget to a sidebar the default ones disappear. The WordPress default widgets are there so your sidebars aren’t blank after a theme is activated.
David
How to Remove Default WordPress Widgets by Adding Widgets
How to Add WordPress Widgets?
David,
I’ve taken your advise and am now using the akismet filter. I would like to include more widgets in each side bar (especially the tags widget) but every time I add one and go back to homepage the only widget remaining is the one I just added. I must be doing something wrong because I’ve seen on your site 5 or 6 widgets on a side bar. What do I need to do?
Thanks,
Randy
How to Add WordPress Widgets?
How to Add Multiple WordPress Widgets
Add two widgets to the same sidebar and all should become clear :-)
When you add a widget for the first time it ‘resets’ that sidebar so rather than adding one widget to the current sidebar widgets, you are starting from scratch.
Means you can build your two sidebars with only the widgets you want and not the ones the theme author thought you’d want to use plus the ones you choose.
David
How to Add Multiple WordPress Widgets
WordPress Tags Widget
David,
I finally figured that out because of our time difference (and I’m sorry for sending the question now) I was in a hurry to get my site finished so I continued experimenting until I achieved the look I wanted.
This did however raise another question. Will I have to manually enter “tags” into the tag widget?
Thanks again for your help,
Randy
WordPress Tags Widget
How to Add a WordPress Tag Widget
The tag widget is automated, so whatever tags you add to your posts will be added to the tags widget.
The current GAT tags widget isn’t very good (formatting is awful), the default tag format is better. I’ve made a new tag widget for version 06 with better formatting, so won’t look that bad in the future :-)
David
How to Add Images to WordPress Widgets?
David,
Thanks for the reply about the double campaigns problem. I’ll watch what I’m clicking.
How could I install my own graphics ads or pics into Talian 05 sidebars or the center of the page?
What are the size dimensions for the side bar graphics?
I think the size dimensions are 120×600 or 120×240?… is that correct? Also, I added the “text” widget, so where do I ad the code for the graphics ad I made and I’d like to make it clickable.
Thanks,
Randy
How to Add Images to WordPress Widgets?
Add Images via a WordPress Text Widget
For the sidebar use text widgets, you can add all sorts of content that way.
Not easy for the center, but should be easy in the next update if I add the custom ad system I plan to add.
David
WordPress Banner Ad Widgets
If you are trying to make a clickable banner type ad the same dimensions as the AdSense sidebar ad it’s
160px wide 600px height
You don’t have to use that width, the sidebar can handle a width around 180px and the height is your choice.
You can have image ads in the place of the AdSense ads on a site.
Below should be an image ad of sorts (links back to this site) and uses one of the images from the WordPress SEO Plugins article.
It’s just a centered div with an image link, as long as you set your image to the size of the ad you want (something like 180px wide 600px height) you don’t have to set anything else.
Code for this:
Max width you can use for an image using the above code is around 200px with Talian 5.
Adapt to your site/images etc…
David
WordPress Banner Ad Widgets