junaidrehman
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Help Me with my header menu scroll downingyou can add #thislink from Appearace->menus menu from admin section and edit link
Forum: Fixing WordPress
In reply to: Help Me with my header menu scroll downingHi, It is simple anchor links points to links on the page. You can learn about links in html and in header.php file create menu links that points to different links on the page. like menu1 point to #thislink and you can place
<a href='#thislink'>My link</a>
on any place where you want user to seeForum: Requests and Feedback
In reply to: Please improve your forum look and add some features for users.thanks very much for your commments. I think the forum is working fine. you are right the number of posts not reflect any expertise.
Forum: Fixing WordPress
In reply to: Moving WP site – now getting php errorsif you have access to the database then go to wp_options table and change site_url and home to sitename.com/wp
if you want to move your site to sitename.com then use sitename.com in site_url and home fields in wp_options tableForum: Fixing WordPress
In reply to: failed to update 4.0 to 4.1if there is error in automatic update then you can manually update.
The manual update process is simple. go to your website root directory and delete all files and folders except wp-content folder and wp_config.php file in root. Then upload all the files and folder in root except wp_content and wp_config.php file.
Remember to take backup of files before doing all this.Forum: Fixing WordPress
In reply to: Every page with a different CSSfunction theme_styles() { wp_enqueue_style( 'main', get_stylesheet_directory_uri() . '/style.css' ); if(is_home()) { wp_enqueue_style( 'custom', get_stylesheet_directory_uri() . '/custom.css' ); } } add_action('wp_enqueue_scripts', 'theme_styles');
Forum: Fixing WordPress
In reply to: Every page with a different CSSsorry use this below code
function theme_styles()
{
wp_enqueue_style( ‘main’, get_stylesheet_directory_uri() . ‘/style.css’ );
if(is_home()) {
wp_enqueue_style( ‘custom’, get_stylesheet_directory_uri() . ‘/custom.css’ );
}}
add_action(‘wp_enqueue_scripts’, ‘theme_styles’);Forum: Fixing WordPress
In reply to: Every page with a different CSSyou can use like this
function theme_styles()
{
wp_enqueue_style( ‘main’, get_template_directory_uri() . ‘/style.css’ );
if(is_home()) {
wp_enqueue_style( ‘custom’, get_template_directory_uri() . ‘/custom.css’ );
}}
add_action(‘wp_enqueue_scripts’, ‘theme_styles’);for more info about is_page() check below
is_page( 42 );
// When Page 42 (ID) is being displayed.is_page( ‘Contact’ );
// When the Page with a post_title of “Contact” is being displayed.is_page( ‘about-me’ );
// When the Page with a post_name (slug) of “about-me” is being displayed.Forum: Fixing WordPress
In reply to: Every page with a different CSSalso dont use is_template_part() you can use like is_front_page() or is_page()
Forum: Fixing WordPress
In reply to: Every page with a different CSSin child theme you have to not copy content of parent functions.php file. just create functions.php file your theme file and then use your new coding there.
Forum: Fixing WordPress
In reply to: HTTP Error when uploading images in 4.1this happens sometimes when your hosting facing problem. this is not wordpress issue it is your hosting down or not responding
Forum: Plugins
In reply to: Problem while creating simple pluginI want to say that following code is not working:-
if ( 'save' == $_REQUEST['action'] ) { add_option("yourname", esc_attr($_REQUEST["yourname"])); add_option("fname", esc_attr($_REQUEST["fname"])); add_filter('wp_footer', 'jun_footer'); }