tokshra
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Remove Author and Date in Pages only in Elbee Elgee themeNever mind…I had left off the <?php
it is OK now!WHEW!!!
Forum: Themes and Templates
In reply to: Remove Author and Date in Pages only in Elbee Elgee themeNow I am getting
Parse error: syntax error, unexpected ‘}’ in /home/umarketi/public_html/sarcoidosisonline.com/wp-content/themes/elbee-child/functions.php on line 10with this function:
function lbc_unplug_lblg_post_info(){
remove_action( ‘lblg_after_itemtext’, ‘lblg_post_info’ );
add_action( ‘lblg_after_itemtext’, ‘lbc_post_info’ );
}
add_action( ‘init’, ‘lbc_unplug_lblg_post_info’);function lbc_post_info(){
if( !is_page() ) { ?>
<span class=”postcats”>Posted in <?php the_category(‘, ‘); ?></span>
<?php } ?>
<?php if( is_single() ){?>
<span class=”posttags”><?php the_tags(‘Tagged as: ‘,’,’); ?></span>
<?php }
}Forum: Themes and Templates
In reply to: Remove Author and Date in Pages only in Elbee Elgee themenow I get this error:
Parse error: syntax error, unexpected ‘}’ in /home/umarketi/public_html/sarcoidosisonline.com/wp-content/themes/elbee-child/functions.php on line 9Forum: Themes and Templates
In reply to: Remove Author and Date in Pages only in Elbee Elgee theme<?php
remove_action( ‘lblg_after_itemtext’, ‘lblg_post_info’ );
function npat_unplug_lblg_post_info(){
remove_action( 'lblg_after_itemtext', 'lblg_post_info' );
add_action( 'lblg_after_itemtext', 'lbc_post_info' );
}
add_action( 'init', 'npat_unplug_lblg_post_info');function lbc_post_info(){
if( !is_page() ) { ?>
<span class="postcats">Posted in <?php the_category(', '); ?></span>
<?php } ?>
<?php if( is_single() ){?>
<span class="posttags"><?php the_tags('Tagged as: ',','); ?></span>
<?php }
}Forum: Themes and Templates
In reply to: Remove Author and Date in Pages only in Elbee Elgee themeThat completely broke my site…this is what shows up now:
Parse error: syntax error, unexpected ‘}’, expecting T_STRING or T_VARIABLE or ‘$’ in /home/umarketi/public_html/sarcoidosisonline.com/wp-content/themes/elbee-child/functions.php on line 7How do I get it back?
Forum: Themes and Templates
In reply to: Remove Author and Date in Pages only in Elbee Elgee themeI really like this theme, but I would like to have the dates removed..it appears the author has disappeared, so it partly worked
thanks for your input
Forum: Themes and Templates
In reply to: Remove Author and Date in Pages only in Elbee Elgee themeyes, I had put it in the main theme…I have now deleted that.
I have the 2 lines in child function.php just as you showed…the author and date are still showing?
Forum: Themes and Templates
In reply to: Remove Author and Date in Pages only in Elbee Elgee themeI copied and pasted just as shown…still no difference?
Forum: Themes and Templates
In reply to: Remove Author and Date in Pages only in Elbee Elgee themethere was only one line in functions:
<?phpnow there are 2:
<?php
remove_action( ‘lblg_after_itemtext’, ‘lblg_post_info’ );so, where does the line go then?
Forum: Themes and Templates
In reply to: Remove Author and Date in Pages only in Elbee Elgee themeI have done all this…downloaded the child theme
installed and activated
added the line to the functions.phpThe author date and name are still there!
How do you REALLY get rid of this? Give me the code to change in the editor…I am very familiar with the editor.
Also, after adding the code, the line of code appears at the top of the page! You can see it here: https://www.sarcoidosisonline.com