Thursday, December 5, 2013

How to remove wordpress.org in meta and adjust it in magento blog

There is one more thing to revise in wordpress.


In meta, you will see wordpress.org and you want to remove or change it.

Go to wp-includes / default-widgets.php and find the line by ctrl+F
Just delete the following or revise it.
 
 

Please remember that it will be overwritten after updating your wordpress. So you must check and revise it after upgrading.
I just changed it as my related site.

When you integrate wordpress blog with Magento by fishfig magento wordpress integration, you also need to revise some. Default meta of magento integration will show wordpress.org, Magento, Magento Wordpress Integration. Let's add comment RSS and remove others.
 

It is hard coded in fishfig magento wordpress integration tool.

Go to app/design/frontend/base/default/template/wordpress/sidebar/widget, You will see widgets.
 

You can add any widget if it exists in widget folder.
Open meta.phtml and let's revise it.
 
 


Just copy first item feed and paste it in second item. just change 'feed/' to 'comments/'
You saw comments.phtml in widget folder and erase rest of all.

 


Now you will see only Rss in meta of magento blog.
It is pretty cool and I think if you make a login widget in widget folder, you can also make it but it is not necessary for me.

Thank you.
 

Fishfig - Magento blog by wordpress integration

I decided to install wordpress blog in my magento shop and leave a following record not to forget how I did.

1. Download fishfig magento wordpress integration (fishpig.co.uk/magento/wordpress-integration/)
Unzip it and just put the unzipped file to your magento folder. It will be added to your magneto folder. Or, you can use magento connect.

2. Install wordpress folder under your magento folder and give them appropriate permission (chmod -R xxx magneto folder name)

tip) not to use ftp, add this code in wp-config.php:     define('FS_METHOD', 'direct');

3. After all, please flush cache in magento admin,  log out and log in. You will see wordpress in magento admin menu.

In wordpress menu, there are two dropdowns, Wordpress is for wordpress admin panel and Setting is for integration. Let's take a look at Setting.

 

Wordpress Integration: Yes
Database: This one does not support database integration. So set it NO.
Fill your database information. If you don't know very well. you can find the exact information in wp-config.php


Integration is menu for wordpress blog.

Home url is for magento url: blog or story as you want it shown on magento url.
It is recommended to make the same route for site url in wordpress.

Path is original path (folder name)


*Menu
There is menu and Top Link Just set as you want.
In Top Link, there is a Position. If you set it 1, it will be the first top menu.

After all, if you click wordpress of wordpress menu at top of magento admin, you will be directed to fill out ID and password of wordpress. Once you are done with it, it will be automatically redirected to your wordpress admin panel.

Tip: This integration seems to be made on Twenty twelve theme but I think it works with Coller theme and Nusantara theme. I made it on a basis of coller. If you have any good theme, please let me know.

Thank you.

rss sitemap of wordpress without using plugin for google webmaster tool

There are xml plug in for google xml sitemap for wordpress but I didn't want to use it because my page isdream.net will be mainly used for blogging.

In that case, you can just use rss feed for registering sitemap of webmaster tools.

In widget, there is meta.


 If you don't have it on your sidebar, drag and drop it on sidebar. It is automatically activated.
 



In your sidebar, you will see Entire RSS and Comments RSS in META.
Those will be your sitemap for posts. When you click them, you can see url and copy them as follows:
- Entire RSS:  ?feed=rss2
- Comments RSS: /?feed=comments-rss2

Please include the appropriate path when you register it in sitemap of google webmaster tools.

That's all. It is very simple.

Advanced Tip: If you are using blog for magneto and want it to be searched with magento, just change the path for magento, I think if you that way, google will think it as magento subfolder.

Thank you.
 

How to remove skip to content in wordpress

After making wordpress site with coller theme, I found something strange in main menu bar.


When I put my mouse on the above broken menu, it hovers some letter "skip to content".
I found that it is a matter of something from header.php.

So you have to get rid of it.

Location: wordpress main folder>wp-content>themes>coller
Find header.php. open it and search skip to content with alt+F key.
I copy the original as header.php.original.

Or you can also do it simply in editor in appearance of wordpress dashboard, too.
 
when you see it you can see a link, <a href="content.....> <?php_e('skip to content','coller');?> </a>

Just remove the code rendering <?php_e('skip to content','coller');?> between <a href=....></a> as follows:
 

Now, refresh your wordpress website.
 

No more broken menu by skip to content.
There are also other method by adjusting css but I think it is better.

Thank you.