All posts tagged tips&tricks

On onextrapixel: using WordPress custom template to create layout with different sidebar

I was contacted by onextrapixel to write some article for them. My first article was published yesterday. It explains how to use wordpress custom templates to create a blog page to display wordpress posts for websites that mainly use pages. It also explains how to customize the sidebar to create a layout with two different sidebars : one for the “normal” pages and one for the “blog post”. Here is the article: “Using WordPress Custom Template to Create Layout with … Continue reading

Adding some wordpress “AddThis” buttons with no plugin.

Most webdesigner /blogers have understood  the importance of sharing content, so we see more and more of those “social sharing buttons” on every website. This feature seams to be a “must have “for a website, and who would I be to blame this tendency, since I’m the first one to enjoy sharing articles on twitter. With this tendency, a lot of WordPress plugins where created to automatically add some social sharing links to websites. Nevertheless, we will not see those … Continue reading

Using wp_reset_query() to make is_page_template() conditional tag behave with sidebar and footer.

One of the great features of wordpress is the conditional tags. Those are very powerful tags that you can use in templates to change content depending on a condition. There’s especially one very handful tag, when it comes to creating custom templates: is_page_template() . With this tag, you can check which template is being used by the current page. The use is quite simple: [php classname="myclass" collapse="false" firstline="1" gutter="true" light="false" padlinenumbers="false" smarttabs="true" tabsize="4" language="false"] is_page_template(‘MyCustomTemplateName.php’)[/php] (don’t forget the .php extension … Continue reading