wccesq
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [raindrops] Navigation Menu Bar in Solid Color & Scroll to Top03-09-2014
HI nobita,
Thank you for providing further help. I just compared the one I revised with the one you provided (https://gist.github.com/tenman/9440678); they are identical. However, when I added the new code to the last line of the existing code, I encountered glitches of warnings as below.
Should I replace completely the existing functions.php in the parent theme with this newly? Or, should I simply add the newly revised code to the last line of the existing one. Please advise and thank you very much.
For your reference, the warnings are:
Warning: Cannot modify header information – headers already sent by (output started at /home3/wccesq/public_html/wp-content/themes/raindrops/functions.php:6400) in /home3/wccesq/public_html/wp-admin/post.php on line 233Warning: Cannot modify header information – headers already sent by (output started at /home3/wccesq/public_html/wp-content/themes/raindrops/functions.php:6400) in /home3/wccesq/public_html/wp-includes/pluggable.php on line 896
Warning: Cannot modify header information – headers already sent by (output started at /home3/wccesq/public_html/wp-content/themes/raindrops/functions.php:6400) in /home3/wccesq/public_html/wp-includes/pluggable.php on line 896
Forum: Themes and Templates
In reply to: [raindrops] Navigation Menu Bar in Solid Color & Scroll to TopHi, Andrew, Thanks for your help cleaning up my postings. It took me many attempts to finally learn how to post the code properly. They are all the same. But the last was posted, using the Code layout, rather than the Word format.
Many thanks thanks, again,
Ken
Forum: Themes and Templates
In reply to: [raindrops] Navigation Menu Bar in Solid Color & Scroll to Top<?php /** * Menu fixed * * * */ define('NOBITA_QUERY', 'nobita_fixed_menu' ); define('NOBITA_VALUE_TYPE', 'js'); //????css $nobita_external_link_value =<<<SCRIPT jQuery(function() { var topBtn = jQuery("#page-top"); topBtn.hide(); jQuery(window).scroll(function () { if (jQuery(this).scrollTop() > 100) { topBtn.fadeIn(); jQuery('#access').css({'position':'fixed','top':'0','z-index':'999','margin':'0'}); jQuery('.logged-in #access').css({'position':'fixed','top':'29px','z-index':'999','margin':'0'}); } else { topBtn.fadeOut(); jQuery('#access').css({'position':'static'}); jQuery('.logged-in #access').css({'position':'static'}); } }); topBtn.click(function () { jQuery("body,html").animate({ scrollTop: 0}, 500); return false; }); }); SCRIPT; add_action( 'after_setup_theme', 'nobita_setup_theme' ); function nobita_setup_theme(){ add_filter('query_vars','nobita_extend_query'); add_action( 'wp_enqueue_scripts', 'nobita_add_style_link', 99 ); add_action( 'template_redirect', 'nobita_external_link_value' ); } function nobita_extend_query( $vars ) { $vars[] = NOBITA_QUERY; return $vars; } function nobita_add_style_link() { if( NOBITA_VALUE_TYPE == 'css' ){ wp_register_style( 'nobita-extend-style', sprintf('/?%1$s=1', NOBITA_QUERY ) ); wp_enqueue_style( 'nobita-extend-style' ); } elseif ( NOBITA_VALUE_TYPE == 'js' ) { wp_register_script( 'nobita-extend-script', sprintf('/?%1$s=1', NOBITA_QUERY ) ); wp_enqueue_script( 'nobita-extend-script' ); } } function nobita_external_link_value( ) { global $nobita_external_link_value; if( intval( get_query_var( NOBITA_QUERY ) ) == 1 ) { $mime_type = wp_get_mime_types( NOBITA_VALUE_TYPE ); if ( ! headers_sent( ) ) { header( 'Content-type: '.$mime_type ); } // add value check if( NOBITA_VALUE_TYPE == 'css' ){ $nobita_external_link_value = strip_tags( $nobita_external_link_value ); } elseif ( NOBITA_VALUE_TYPE == 'js' ) { $nobita_external_link_value = strip_tags( $nobita_external_link_value ); } echo $nobita_external_link_value; exit; } } ?>
Forum: Themes and Templates
In reply to: [raindrops] Navigation Menu Bar in Solid Color & Scroll to TopHi, nobita,
One more attempt as follws. Ken
[Unnecessary code redacted]Forum: Themes and Templates
In reply to: [raindrops] Navigation Menu Bar in Solid Color & Scroll to Top[Unnecessary code redacted]
Forum: Themes and Templates
In reply to: [raindrops] Navigation Menu Bar in Solid Color & Scroll to Top[Unnecessary code redacted]
Forum: Themes and Templates
In reply to: [raindrops] Navigation Menu Bar in Solid Color & Scroll to TopHi, nobita,
One more attempt as follws. Ken
[Unnecessary code redacted]Forum: Themes and Templates
In reply to: [raindrops] Navigation Menu Bar in Solid Color & Scroll to TopNobita, Another try for HTML as follows. Ken
?[Unnecessary code redacted]
?
Forum: Themes and Templates
In reply to: [raindrops] Navigation Menu Bar in Solid Color & Scroll to TopHi, nobita,
Sorry for my ignorance. Here is the HTML for the php. Please advise. Thanks, Ken
[Unnecessary code redacted]Forum: Themes and Templates
In reply to: [raindrops] Navigation Menu Bar in Solid Color & Scroll to TopHi, nobita,
Since I am only a beginner to php, after repeated readings, my understanding of your instructions is to add the revised php paragraph, as cited below, at the end of the parent Functions.php, rather than creating a php function in the existing child theme. Please advise. I tried to shade the following code, using Microsoft Word. Hopefully, it shows up correctly. Many thanks, Ken[Unnecessary code redacted]
Forum: Themes and Templates
In reply to: [Twenty Thirteen] 3d Text for Site Title and TaglineHi, esmi,
Thanks for your prompt advice. Just installed Child Themify plugin. If possible, please give me an example of code to create 3D letters. I prefer 360 degree type.
Or slightly shaded will do, if 3D is too difficult.
Looking forward to hearing from you soon.
Ken
Forum: Themes and Templates
In reply to: [raindrops] Navigation Menu Bar in Solid Color & Scroll to TopHi, nobita,
Good news! My web is up and the solid color bar and hovering color stay, working beautifully.
Will test Scroll to Top tomorrow.
Good night,
Ken
Note: adding the rules to the Child theme-right?
Forum: Themes and Templates
In reply to: [raindrops] Navigation Menu Bar in Solid Color & Scroll to TopHi, nobita,
Our Hostserver, Hostgator, is down; will check tomorrow when their server is up again.
Thanks,
Ken
Forum: Themes and Templates
In reply to: [raindrops] Navigation Menu Bar in Solid Color & Scroll to TopHi,nobita,
1. Solid color accomplished, but my hovering color disappeared. Can I keep or add a hovering color?
2. A bit complicated, still testing-will let you know soon.
Thanks,
Ken
Forum: Themes and Templates
In reply to: [raindrops] Sticky Menu and Update ProblemsHi, nobita,
Thank you. Will do.
Ken