Posts by kayapati

216 posts WordPress Theme Devoloper
  • Author had a Free File of the Month
  • Bought between 10 and 49 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 5-6 years
  • Most Wanted Bounty Winner
  • Referred between 1 and 9 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
+1 more
kayapati says
Just replace you regular $content in a shortcode with:
do_shortcode($content)
Be careful though, as Wordpress likes to put lots of unnecessary code like br and p into your shotcodes and this can become a mess.

I use short codes for columns, bet I get unnecessary p and br tags, can any one tell me how to avoid this issue?

216 posts WordPress Theme Devoloper
  • Author had a Free File of the Month
  • Bought between 10 and 49 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 5-6 years
  • Most Wanted Bounty Winner
  • Referred between 1 and 9 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
+1 more
kayapati says
This is what I use:

if (is_admin() && isset($_GET['activated'] ) && $pagenow == "themes.php" ) {
    //Call action that sets
    add_action('admin_head','ct_option_setup');
    //Do redirect
    header( 'Location: '.admin_url().'admin.php?page=options_panel.php' ) ;
}

Where do you place this code? in the wp-includes/function.php file?

yes you need to add it in function.php

216 posts WordPress Theme Devoloper
  • Author had a Free File of the Month
  • Bought between 10 and 49 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 5-6 years
  • Most Wanted Bounty Winner
  • Referred between 1 and 9 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
+1 more
kayapati says
I guess that code wil work on a custom admin page, but if you have a simple Theme Optioins page, the path url and php page is different.

In that case i use this in my functions.php:

function my_options_add_page() {
    add_theme_page( __( 'Theme Options' ), __( 'Theme Options' ), 'administrator', 'your-theme-options-page-slug', 'my_options_do_options');
}

function my_options_do_options(){

 // do the options page here....

}

add_action( 'admin_menu', 'my_options_add_page' );

if ($_GET['activated']){
    wp_redirect(admin_url("themes.php?page=your-theme-options-page-slug"));
}

The above code worked me perfectly. Thanks rg :)

216 posts WordPress Theme Devoloper
  • Author had a Free File of the Month
  • Bought between 10 and 49 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 5-6 years
  • Most Wanted Bounty Winner
  • Referred between 1 and 9 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
+1 more
kayapati says

duotive and graphic_dev thanks for your feedback.

this theme contains 7 color skins, this is one out of them.

I have also included gray and black.

Any how the file is on the Q, let us see whether it is accepted or rejected.

Now I changed the skin to GRAY

216 posts WordPress Theme Devoloper
  • Author had a Free File of the Month
  • Bought between 10 and 49 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 5-6 years
  • Most Wanted Bounty Winner
  • Referred between 1 and 9 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
+1 more
kayapati says
Kayapati use the below code <?php if ($_GET['activated']){ wp_redirect(admin_url("admin.php?page=theme_options.php")); } ?>

Faheem

I get the bellow error when I use the above code in function.php

can you tell me where I need to place the above code?

The error I get:

“You do not have sufficient permissions to access this page.”

216 posts WordPress Theme Devoloper
  • Author had a Free File of the Month
  • Bought between 10 and 49 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 5-6 years
  • Most Wanted Bounty Winner
  • Referred between 1 and 9 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
+1 more
kayapati says

Hi Friends

I need your feedback on this wordpress theme.

http://tinyurl.com/3227m37

216 posts WordPress Theme Devoloper
  • Author had a Free File of the Month
  • Bought between 10 and 49 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 5-6 years
  • Most Wanted Bounty Winner
  • Referred between 1 and 9 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
+1 more
kayapati says

Thank you friends

216 posts WordPress Theme Devoloper
  • Author had a Free File of the Month
  • Bought between 10 and 49 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 5-6 years
  • Most Wanted Bounty Winner
  • Referred between 1 and 9 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
+1 more
kayapati says

Hi mates

How to activate my theme options settings page immediately after theme is activated?

I have seen few themes are working like this.

Can any one explain how to do it?

216 posts WordPress Theme Devoloper
  • Author had a Free File of the Month
  • Bought between 10 and 49 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 5-6 years
  • Most Wanted Bounty Winner
  • Referred between 1 and 9 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
+1 more
kayapati says
Hi Ram. Did you tried jQuery.noConflict()? If you are initializing nivo slider inside your common custom.js file, try to separate the initialization code in a different file. Like nivo_init.js, and use no conflict on that. Hope it works.

I got solved the nivoslider issue.

But my main issue was I used jquery tabs in theme options, the widget drag & drop is not working when I use jquery tabs,

I used the link in function.php like this:

wp_enqueue_script("jquery-ui.min", $file_dir."/kaya_admin/js/jquery-ui.min.js", false, "1.0");

If we remove the above link then the widget works but the theme options tab does not.

Thanks ram

216 posts WordPress Theme Devoloper
  • Author had a Free File of the Month
  • Bought between 10 and 49 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 5-6 years
  • Most Wanted Bounty Winner
  • Referred between 1 and 9 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
+1 more
kayapati says

Friends.

I am facing problem with jquery conflict.

When I activate few plugins my nivo slider do not work.

can you tell me any resource or links to avoid the jquery conflict?

by
by
by
by
by
by