Forum Replies Created
-
AuthorPosts
-
April 1, 2013 at 2:31 am in reply to: PLEASE HELP: I want "read more" buttons – NOT text links #32402jpnybergMember
Kim,
Thanks for trying to help me with this.
I got my site up and running again.
I have the read more link styled with the blue buttons.
But, the php snippet you provided causes my site to freeze up - white screen of death.
I tested it a couple of times. Every time I remove the php bit, the site comes up again.
Any thoughts?
March 30, 2013 at 10:51 pm in reply to: PLEASE HELP: I want "read more" buttons – NOT text links #32191jpnybergMemberThanks Kim.
Argh! This didn't work, either. I can't login to wp-admin or see my page at all. Still white screen.
At this point, I'm bummed and gonna give up for the night and try again tomorrow.
Thanks again for helping out!
March 30, 2013 at 10:26 pm in reply to: PLEASE HELP: I want "read more" buttons – NOT text links #32189jpnybergMemberAwe ok. But yikes! I will lose all my extra php add-ons right?
Here's what my php file looks like now. Any ideas? Or, do I still have to delete everything?
<?php
// Start the engine
require_once( get_template_directory() . '/lib/init.php' );// Child theme (do not remove)
define( 'CHILD_THEME_NAME', 'Genesis Sample Theme' );
define( 'CHILD_THEME_URL', 'http://www.studiopress.com/' );// Add Viewport meta tag for mobile browsers
add_action( 'genesis_meta', 'sample_viewport_meta_tag' );
function sample_viewport_meta_tag() {
echo '<meta name="viewport" content="width=device-width, initial-scale=1.0"/>';
}// Add support for custom background
add_theme_support( 'custom-background' );// Add support for custom header
add_theme_support( 'genesis-custom-header', array(
'width' => 1152,
'height' => 120
) );// Add support for 3-column footer widgets
add_theme_support( 'genesis-footer-widgets', 3 );// Register newsletter widget area
genesis_register_sidebar( array(
'id' => 'newsletter',
'name' => __( 'Newsletter', 'custom-theme' ),
'description' => __( 'This is the newsletter section.', 'custom-theme' ),
) );// Add the newsletter widget after the post content
add_action( 'genesis_after_post_content', 'custom_add_newsletter_box' );
function custom_add_newsletter_box() {
if ( is_singular( 'post' ) )
genesis_widget_area( 'newsletter', array(
'before' => '<div id="newsletter">',
) );
}/** Modify the speak your mind text */
add_filter( 'genesis_comment_form_args', 'custom_comment_form_args' );
function custom_comment_form_args($args) {
$args['title_reply'] = 'Leave a Comment';
return $args;add_filter( 'genesis_comment_form_args', 'wps_comment_form_args' );
/**
* Remove website field from Comments Form
*
* @param array $args Comments form arguments.
* @return array $args Modified Comments form arguments.
*/
function wps_comment_form_args( $args ) {
unset( $args['fields']['url'] );
return $args;
}/** Register widget areas */
genesis_register_sidebar( array(
'id' => 'after-post-ad',
'name' => __( 'After Post Ad', 'themename' ),
'description' => __( 'This is a widget area that can be placed after the post', 'themename' ),
) );add_action( 'genesis_after_post_content', 'my_widget_after_post' );
function my_widget_after_post() {
if ( ! is_singular( 'post' ) )
return;
genesis_widget_area( 'after-post-ad', array(
'before' => '<div class="after-post widget-area">',
) );
}/** Load Google fonts */
add_action( 'wp_enqueue_scripts', 'custom_load_google_fonts' );
function custom_load_google_fonts() {
wp_enqueue_style( 'google-fonts', 'http://fonts.googleapis.com/css?family=Open+Sans', array(), PARENT_THEME_VERSION );
}add_filter( 'genesis_comment_form_args', 'url_filtered' );
add_filter( 'comment_form_default_fields', 'url_filtered' );
function url_filtered( $fields ) {
if ( isset( $fields['url'] ) )
unset( $fields['url'] );
if ( isset( $fields['fields']['url'] ) )
unset( $fields['fields']['url'] );
return $fields;}
/** Modify the WordPress read more link */
add_filter( 'the_content_more_link', 'custom_read_more_link' );function custom_read_more_link() {
return 'Read more...';
}/** Stop more link from jumping to middle of page */
add_filter('the_content_more_link', 'remove_more_jump_link');function remove_more_jump_link($link) {
$offset = strpos($link, '#more-');
if ($offset) {
$end = strpos($link, '"',$offset);
}
if ($end) {
$link = substr_replace($link, '', $offset, $end-$offset);
}
return $link;
}March 30, 2013 at 10:08 pm in reply to: PLEASE HELP: I want "read more" buttons – NOT text links #32186jpnybergMemberKim you're amazing for taking the time to help me! Thank you so much.
Yup, far as I know, I followed your instructions to the letter. I still can't login to wp-admin.I am happy to provide my cPanel credentials if you'd really like to look around! 😉
I'm just happy to have the help and can certainly send over a 12 pack or Starbucks card or manicure gift certificate or whatever. 😉
March 30, 2013 at 9:59 pm in reply to: PLEASE HELP: I want "read more" buttons – NOT text links #32184jpnybergMemberThanks Kim.
Any chance to you could save me some research time and tell me:How do I disable a plugin using the cPanel? I've never done this before.
And, I currently can't login to wp-admin.So I can disable W3 Cache for now.
March 30, 2013 at 9:45 pm in reply to: PLEASE HELP: I want "read more" buttons – NOT text links #32180jpnybergMemberThanks for the reply Kim! But, this didn't work.
In fact, after entering your suggested snippet into .php in Sample Theme, I am now locked out!
I have the "white screen of death" and get back in.
Also, I re-edited .php using Cpanel File Manager, but I am still locked out.
Everything was working fine until I made these changes.
Btw, I am using W3 Total Cache with CloudFlare integration. Does this cause any problems?
-
AuthorPosts