Ankit Singla
Forum Replies Created
-
Forum: Installing WordPress
In reply to: Single WordPress Install for multiple sites(read description)Thanks, Mr. Patel.
Thanks, Esmi.Alright.
Should I close this topic – with the conclusion that this can’t be achieved?I was hoping if there be a solution to this.
Thanks again for your replies.
Forum: Fixing WordPress
In reply to: How to remove_action for function added in after_setup_themeThanks mate.
Resolved.
Forum: Fixing WordPress
In reply to: How to remove_action for function added in after_setup_themeThanks, it works fine.
Do we always need to add a priority less than 10?
Forum: Fixing WordPress
In reply to: How to remove_action for function added in after_setup_themeI’ve worked it this situation by adding a priority as:
add_action( ‘after_setup_theme’, ‘child_function’, 100);
So it now gets added in the end, and overrides the settings in parent_function.
But for sure parent function is still being executed.
How to remove it completely?
Forum: Fixing WordPress
In reply to: Site is missingNever mind, hope you get it fixed soon.
Forum: Fixing WordPress
In reply to: Site is missingIf you can post a link, we can try.
Forum: Themes and Templates
In reply to: [The Bootstrap] Category archive for custom post typesIt is resolved.
I had a function hooked in to alter pre_get_posts that created a query over non post-type-object.
Fixed now.
Thanks.
Forum: Fixing WordPress
In reply to: WP Menus – ends to white screen when saving.Yes, this is surely a server issue.
suhosin.post.max_vars = 5000; suhosin.request.max_vars = 5000; max_input_vars = 5000; max_input_time = 600; max_execution = 600;One or more of this should help.
Thanks!!
Forum: Fixing WordPress
In reply to: Error message: this child theme requires its parent theme…Yeah, and you’re not the first person to find that perplexing :).
Another line of text in WP can help users to not confused with this:
This child theme requires its parent theme. Do not remove TwentyTwelve from your themes directory
Forum: Plugins
In reply to: wp-page-numbers.css help!Check this links: it seems fine.
https://developers.google.com/speed/pagespeed/insights#url=www.bmxunion.com&mobile=false
Forum: Themes and Templates
In reply to: How to add options in Thematic child theme?Hello,
Sorry, I forgot to update this topic.
I achieved that using a theme-options theme(don’t remember where I found it from).
It was a theme named “Theme Options”, involving a file theme-options.php.
I don’t have the original version of it, but providing the edited version that I used for the site I converted to wordpress, the link is in the first post of this topic.
The code is here::<?php add_action( 'admin_init', 'theme_options_init' ); add_action( 'admin_menu', 'theme_options_add_page' ); /** * Init plugin options to white list our options */ function theme_options_init(){ register_setting( 'sculp_options', 'sculp_theme_options', 'theme_options_validate' ); } /** * Load up the menu page */ function theme_options_add_page() { add_theme_page( __( 'Theme Options', 'sculptheme' ), __( 'Theme Options', 'sculptheme' ), 'edit_theme_options', 'theme_options', 'theme_options_do_page' ); } /** * Create the options page */ function theme_options_do_page() { global $select_options, $radio_options; if ( ! isset( $_REQUEST['settings-updated'] ) ) $_REQUEST['settings-updated'] = false; ?> <div class="wrap"> <?php screen_icon(); echo "<h2>" . get_current_theme() . __( ' Theme Options', 'sculptheme' ) . "</h2>"; ?> <?php if ( false !== $_REQUEST['settings-updated'] ) : ?> <div class="updated fade"><p><strong><?php _e( 'Options saved', 'sculptheme' ); ?></strong></p></div> <?php endif; ?> <form method="post" action="options.php"> <?php settings_fields( 'sculp_options' ); ?> <?php $options = get_option( 'sculp_theme_options' ); ?> <table class="form-table"> <?php /** * A Enter complete url including http:// option */ ?> <tr valign="top"><th scope="row"><?php _e( 'Contact No.', 'sculptheme' ); ?></th> <td> <input id="sculp_theme_options[contactno]" class="regular-text" type="text" name="sculp_theme_options[contactno]" value="<?php esc_attr_e( $options['contactno'] ); ?>" /> <label class="description" for="sculp_theme_options[contactno]"><?php _e( 'Number at the top', 'sculptheme' ); ?></label> </td> </tr> <tr valign="top"><th scope="row"><?php _e( 'Your E-mail', 'sculptheme' ); ?></th> <td> <input id="sculp_theme_options[youremail]" class="regular-text" type="text" name="sculp_theme_options[youremail]" value="<?php esc_attr_e( $options['youremail'] ); ?>" /> <label class="description" for="sculp_theme_options[youremail]"><?php _e( 'E-mail at the top', 'sculptheme' ); ?></label> </td> </tr> <tr valign="top"><th scope="row"><?php _e( 'Linked in', 'sculptheme' ); ?></th> <td> <input id="sculp_theme_options[linkedin]" class="regular-text" type="text" name="sculp_theme_options[linkedin]" value="<?php esc_attr_e( $options['linkedin'] ); ?>" /> <label class="description" for="sculp_theme_options[linkedin]"><?php _e( 'Enter complete url including http://', 'sculptheme' ); ?></label> </td> </tr> <tr valign="top"><th scope="row"><?php _e( 'Facebook', 'sculptheme' ); ?></th> <td> <input id="sculp_theme_options[facebook]" class="regular-text" type="text" name="sculp_theme_options[facebook]" value="<?php esc_attr_e( $options['facebook'] ); ?>" /> <label class="description" for="sculp_theme_options[facebook]"><?php _e( 'Enter complete url including http://', 'sculptheme' ); ?></label> </td> </tr> <tr valign="top"><th scope="row"><?php _e( 'Twitter', 'sculptheme' ); ?></th> <td> <input id="sculp_theme_options[twitter]" class="regular-text" type="text" name="sculp_theme_options[twitter]" value="<?php esc_attr_e( $options['twitter'] ); ?>" /> <label class="description" for="sculp_theme_options[twitter]"><?php _e( 'Enter complete url including http://', 'sculptheme' ); ?></label> </td> </tr> <tr valign="top"><th scope="row"><?php _e( 'Dots', 'sculptheme' ); ?></th> <td> <input id="sculp_theme_options[dots]" class="regular-text" type="text" name="sculp_theme_options[dots]" value="<?php esc_attr_e( $options['dots'] ); ?>" /> <label class="description" for="sculp_theme_options[dots]"><?php _e( 'Enter complete url including http://', 'sculptheme' ); ?></label> </td> </tr> <tr valign="top"><th scope="row"><?php _e( 'Youtube', 'sculptheme' ); ?></th> <td> <input id="sculp_theme_options[youtube]" class="regular-text" type="text" name="sculp_theme_options[youtube]" value="<?php esc_attr_e( $options['youtube'] ); ?>" /> <label class="description" for="sculp_theme_options[youtube]"><?php _e( 'Enter complete url including http://', 'sculptheme' ); ?></label> </td> </tr> <tr valign="top"><th scope="row"><?php _e( 'Thumbnail Heading', 'sculptheme' ); ?></th> <td> <input id="sculp_theme_options[recent]" class="regular-text" type="text" name="sculp_theme_options[recent]" value="<?php esc_attr_e( $options['recent'] ); ?>" /> <label class="description" for="sculp_theme_options[recent]"><?php _e( 'Default : Recent Works, Should not be a long line', 'sculptheme' ); ?></label> </td> </tr> <?php /** * A sculp textarea option */ ?> <tr valign="top"><th scope="row"><?php _e( 'A textbox', 'sculptheme' ); ?></th> <td> <textarea id="sculp_theme_options[facebookarea]" class="large-text" cols="50" rows="10" name="sculp_theme_options[facebookarea]"><?php echo esc_textarea( $options['facebookarea'] ); ?></textarea> <label class="description" for="sculp_theme_options[facebookarea]"><?php _e( 'sculp text box', 'sculptheme' ); ?></label> </td> </tr> </table> <p class="submit"> <input type="submit" class="button-primary" value="<?php _e( 'Save Options', 'sculptheme' ); ?>" /> </p> </form> </div> <?php } /** * Sanitize and validate input. Accepts an array, return a sanitized array. */ function theme_options_validate( $input ) { global $select_options, $radio_options; // Say our text option must be safe text with no HTML tags $input['sometext'] = wp_filter_nohtml_kses( $input['sometext'] ); // Say our textarea option must be safe text with the allowed tags for posts $input['sometextarea'] = wp_filter_post_kses( $input['sometextarea'] ); return $input; } // adapted from http://planetozh.com/blog/2009/05/handling-plugins-options-in-wordpress-28-with-register_setting/After adding this, to your theme directory you’ll see a link “Theme Options” in the Appearance menu.
I hope you’ll make your way through this file.
Forum: Fixing WordPress
In reply to: Post TemplateYou may need to learn the Custom Fields, read about them at WordPress Codex.
Forum: Fixing WordPress
In reply to: Tag backgrounds merging with multiple tagsCan you show us a link to that page(if that is a live site)?
Forum: Fixing WordPress
In reply to: Sliders problem – images not rotating. Tried two or three sliders.Thanks Mate.
By deleting the Easy Nivo slider, I got the other slider working.
Thanks again.Do you outsource/freelance??
Forum: Fixing WordPress
In reply to: Sliders problem – images not rotating. Tried two or three sliders.Thanks man, I just downloaded a copy of this to check.
But as on my page there are three images, all three are sliders. First two are from easy nivo slider, and
the third one – is from some other plugin — JJ Nextgen plugin.
But same is the error with that.I am trying the one you referred now.