kapilj
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Using PHP in WordPressIt seems that you are calling the .php page directly. To use WordPress functions you have to include “wp_load.php” file exists in the WordPress root directory.
The better option is use custom page template (http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates)
Thanks!
Forum: Developing with WordPress
In reply to: Really wired problem! please look at this.Please share the link of your blog, I will try to help you.
Thanks!
KapilForum: Themes and Templates
In reply to: How to remove extra white space above header?To drop down the tabs add “marign-bottom: 20px;” in .description class, for example:
.description{color:#666; margin-top:-10px; margin-bottom: 20px; padding:0 0 10px 21px; font-size:13px; line-height:1; font-style:italic;}
Thanks!
KapilForum: Themes and Templates
In reply to: How to remove extra white space above header?Hello Michael,
To manage the white space at the top and space between blog title and description, do edit in the .homelink and .description class in the style.css file exist in the theme folder. The current one is:
.homelink class
.homelink{font-size:35px; line-height:1; font-weight:bold; letter-spacing:-0.5px; padding:40px 20px 10px 20px; font-variant:small-caps;}Change value against the padding (40px)
.description
.description{color:#666; margin-top:-10px; padding:0 0 10px 21px; font-size:13px; line-height:1; font-style:italic;}Change value against margin-top (-10px)
Thanks!
KapilForum: Themes and Templates
In reply to: Show portfolio-categorie in sidebarAs “Avisio theme” is a premium theme on themeforest.net, it is difficult to find out the solution.
It is possible for you to share the theme or setup a demo site and share the login credentials.
Thanks!
KapilForum: Developing with WordPress
In reply to: Really wired problem! please look at this.The basic difference is between get_posts and query_posts is:
When we use query_posts, it redefined all the global variables and
When when we use get_posts it runs as a normal MySql query and return the result set.
Thanks!
KapilForum: Developing with WordPress
In reply to: Really wired problem! please look at this.There is 2 ways to sort out this issuse:
1. Use “get_posts” function instead of “query_posts” (recommended one), there may be chances that $post conflict with the global $post variable. http://codex.wordpress.org/Template_Tags/get_posts
2. Define ‘global $post;’ in start of the function
Hope this works!
KapilForum: Themes and Templates
In reply to: Center ThemeI think this will work:
In the header.php file of your theme replace
<div align="center" style="height:100%; width:100%; ">with
<div style="margin: 0 auto; width: 1070px">try to change the width if page is not rendered properly.
Thanks!
KapilForum: Themes and Templates
In reply to: Show portfolio-categorie in sidebarIf you are using any specific theme, please let me know which one are you usgin.
Normally widgets are defined in the function file. Try to search for the news widget. To make is duplicate copy the code and replace news with portfolio in the copied text.
Also I think you have to create a copy of “sidebar_news.php” page as “Sidebar_portfolio.php” and make edits into it.
Hope this works for you.
Thanks!
Kapil