Chủ Nhật, 26 tháng 1, 2014

wordpress tips and tricks

CÁCH TẮT COMMENT CỦA WORDPRESS
Chọn Post/ All post/ chọn Edit Post muốn tắt chức năng comment

Chọn Screen Option/ Chọn Discussion

Tắt hai option của Discussion


7 Tips to Customize WordPress Twenty Eleven Theme

A lot of WordPress websites are built upon, and still use, the previous default WordPress ThemeTwenty Eleven. I will show you 7 tips that you can use to customize the Twenty Eleven Theme.
The WordPress Twenty Eleven Theme
With most of the tips you don’t even need to know much about PHP coding, just how to install a special Twenty Eleven plugin.

Tip 1: Install WordPress Twenty Eleven Theme Extensions

Twenty Eleven Theme Extensions is the plugin you want as it can solve most of the problems people are facing with Twenty Eleven.
To install this plugin go to Plugins -> Add new -> Search Twenty Eleven Theme Extensions and select it from the list.
Click on install and confirm that you want to install it. After installation make sure you click the active option.
You should now see an extra option under Appearance called Theme Extensions. We will go though the options in this post as most of the options  you want to change.
Twenty Eleven Theme Extensions Options

Tip 2:  Twenty Eleven Sidebar on All pages

If you look at the default layout of the Twenty Eleven theme you will see that the sidebar is only visible on the Home page.
But you want to have that sidebar on all pages, including posts. If you only want it on pages, you can select that option via the  Page Attributes in the right side menu of your edit screen.
Page Attribute Sidebar Template Option
Unfortunately that means you have to do that on every page and you still wouldn’t have the sidebar on posts. To change this, click the upper two options in the extensions plugin settings.
Twenty Eleven Sidebar on All Pages

 Tip 3:  Change the Header Image and Size on Twenty Eleven

The default header size for the Twenty Eleven Theme is 1000 width x 288 pixels in height.  Which is pretty high and takes a lot of space on your screen. You can easily change that with the extensions option Change the height of new images.
Twenty Eleven Theme Header Change
If you already have some headers installed, make sure you check the second option as well.
Better would be to create and upload new images in the right format or crop them upon upload.
You can upload new header images via Appearance -> Header -> Choose or Upload a new header file. Once you uploaded more than one header file you can switch the headers automatically by selecting the Random option.
Twenty Eleven Header Uploads and Selection
Note: Did you know you can set a special header for each post or page? Create a special header in the same size as the standard one (here it is now 1000 x 175 pixels) 1000 x 288 is the Twenty Eleven standard format.
Now go to the page or post you want that header to show up and select the option Featured Image, upload or select the header and update the page / post.
Featured Header Image Option

Tip 4:  Twenty Eleven Theme Change Menu Color and More

One of the most asked questions on Twenty Eleven is how to customize the Menu Color and other items like the link colors and text color. With the extensions plugin you need to check the Custom Color option to get this done.
Twenty Eleven Custom Colors
Once you activate that option you get new selections in the the Appearance -> Theme Options. You ahd a few options on that in the standard theme options, now you get a big list of things you can change.
Customize the colors on Twenty Eleven
For the menu color change look for Menu Background Color, Menu Highlight Color and if needed Menu Text Color.
You can select the colors from the button next to the color, or put in the hex (#de000a).  If you want color suggestions, check out http://www.colorhexa.com/ and http://www.colorcombos.com/

Tip 5: Remove Search from Twenty Eleven Top

As we have the last option in the extensions called Custom Style we can used that directly to remove / hide the Search Option in the top title area. Activate the Custom style option and place this code in it:
/* Search Form */
 #branding #searchform {
 display: none;
 }
So you should end up with this:
Twenty Eleven Remove Hide Search

Tip 6:  Remove / Hide Twenty Eleven Topmenu  Navigation

Some people don’t like to have the Top Navigation menu below the header image and only want to use a custom menu in the sidebar.
Twenty Eeleven Main Navigation Menu
If you also want to remove that menu, then this simple trick is for you. First create a custom menu, lets call it Blank. You leave that menu empty, so not even a Home link. Now set that Blank  as the primary navigation option and check your website, you should not see the navigation anymore.
Custom Blank Menu
Example, Twenty Eleven with smaller header and no main navigation bar.
Twenty Eeleven Main Navigation removed

Tip 7: Remove the Comment Function from Twenty Eleven Pages

On Twenty Eleven pages you can see that there is also the possibility to comment on that page.
If its a real static pages, like a contact form or a sitemap, you don’t want people to comment on the content of that page.
I only want comments on my posts, not on pages. So the option to disable all comments is not an option. Instead change the screen options display when you are in the edit screen for a page.
Start with the screen options tab (upper right corner)
WordPress screen display options
On that screen enable the Discussion option by checking it, this will display the Comments option below your main content edit screen.
D:Afbeeldingenitmentorwordpress-discussion-options.png
Un-check both options and the comments form will be gone from your page. You need to do this on all current and new pages!

Bonus Tip: Remove / Customize Proudly Powered by WordPress from Twenty Eleven Footer

In this case we do need to work on a core file from the Twenty Eleven Theme, specially the file called footer.php
It would be better to do this on a Child Theme, but for this purpose it will not be such a problem. You just need to make sure you do it again it there should come an update for the Twenty Eleven Theme.
Go to Appearance -> Editor -> Open the file Footer (footer.php)
Search for <div id="site-generator">
You need to replace the code between that code and the first </div> after that code. replace the code:
<?php do_action( 'twentyeleven_credits' ); ?>
<a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentyeleven' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyeleven' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentyeleven' ), 'WordPress' ); ?></a>
With
<p>Copyright &copy; - <?php echo date('Y'); ?><a href="http://www.example.com" rel="nofollow"> Special Example Link Website</a></p>
Change www.example.com with your own URL and the text for the link to fit your website. All done, you should see your own text in the footer and it should link back to your homepage.

Thứ Sáu, 10 tháng 1, 2014

5 lý do bạn không nên phụ thuộc chồng về tài chính

Trang Magazine for Women sẽ gợi ý 5 lý do để bạn không nên phụ thuộc vào chồng trong vấn đề tài chính:
1. Bạn sẽ tránh khỏi những khó khăn nếu anh ấy mất đột ngột
Điều này không nhất thiết phải xảy ra, nhưng hãy tưởng tượng nếu một ngày nào đó anh ấy chết đột ngột, bạn sẽ bị bỏ lại một mình mà không hề biết anh ấy nhận tiền bằng cách nào, cất nó ở đâu, người đã cho vay hoặc nơi anh đã đầu tư vào. Bạn thậm chí có thể phải tự mình lo cho đám tang của chồng nếu anh ấy không quản lý tài chính tốt và không để lại cho bạn bất cứ thứ gì.
tien-1839-1389323923.jpg
Ảnh: goodhousekeeping.com.
2. Bạn sẽ được đối xử công bằng nếu ly hôn
Đây không phải là một suy nghĩ tốt đẹp nếu bạn vẫn nghĩ tình yêu của mình mạnh mẽ và rằng hai người sẽ bên nhau mãi mãi. Nhưng nếu không biết gì về vấn đề tiền bạc, tài chính của gia đình được quản lý như thế nào, bạn có thể bị đối xử bất công khi hai người quyết định ly hôn. Hoặc là bạn sẽ phải tốn một khoản tiền lớn để thuê luật sư, hoặc là bạn sẽ phải nhận sự phân chia không công bằng so với những gì bạn xứng đáng được nhận.
3. Bạn sẽ không bị phụ thuộc vào những thứ khác
Khi bị phụ thuộc chồng về tài chính, các mối quan hệ xã hội của bạn sẽ không bao giờ được cân bằng. Bạn cũng vô tình phụ thuộc vào anh ấy rất nhiều thứ khác. Quyền quyết định cũng thuộc về chồng và bạn sẽ phải xin anh ấy tiền nếu cần. Điều này sẽ ổn nếu cả hai cảm thấy thoải mái nhưng có thể gây ra vấn đề khi anh ấy không có đủ tiền hoặc khi bạn cần tiền cho một việc gì đó mà không thể giải thích với anh ấy.
4. Bạn sẽ yên tâm hơn khi biết cách quản lý tiền bạc của mình
Khi quản lý tiền của mình hoặc của gia đình, bạn sẽ cảm thấy yên tâm về tương lai của bản thân, nhu cầu hiện tại. Thay vì lo lắng khi đề nghị chồng đưa tiền bất cứ khi nào, bạn sẽ biết về nhu cầu của mình và cách thức thực hiện chúng khi quản lý tiền bạc thay vì đưa cho anh ấy.
5. Giảm bớt căng thẳng cho chồng
Khi bị lệ thuộc chồng về vấn đề tài chính, bạn sẽ chỉ tạo ra thêm nhiều căng thẳng và gánh nặng cho anh ấy. Vì thế, hãy giảm căng thẳng cho bạn đời bằng cách nhận một số tiền nhất định từ anh ấy mỗi tháng và hãy tự mình quản lý nó.