peterlunglum
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
Forum: Fixing WordPress
In reply to: options phpHere is my functions php for reference :
<?php define('THEMEROOT', get_stylesheet_directory_uri()); define('IMAGES', THEMEROOT . '/images'); if ( function_exists('register_sidebar') ) register_sidebar(); function arphabet_widgets_init(){ register_sidebar(array( 'top-menu' => __('Top Menu', 'PLUM_THEME-framework'), 'main-menu' => __('Main Menu', 'PLUM_THEME-framework'), )); } add_action('widgets_init', 'arphabet_widgets_init'); if (function_exists('register_sidebar')) { register_sidebar( array( 'name' => __('Sidebar', 'PLUM_THEME-framework'), 'id' => 'sidebar', 'description' => __('The main sidebar area', 'PLUM_THEME-framework'), 'before_widget' => '<div class="sidebar-widget">', 'after_widget' => '</div> <!--end sidebar-widget-->', 'before_title' => '<h4>', 'after_title' => '</>', )); } if (function_exists('add_theme_support')) { add_theme_support('post-formats', array('link', 'quote', 'gallery')); add_theme_support('post-thumbnails', array('post')); } $wp_filetype = wp_check_filetype(basename($filename), null ); $wp_upload_dir = wp_upload_dir(); $attachment = array( 'guid' => $wp_upload_dir['url'] . '/' . basename( $filename ), 'post_mime_type' => $wp_filetype['type'], 'post_title' => preg_replace('/\.[^.]+$/', '', basename($filename)), 'post_content' => '', 'post_status' => 'inherit' ); $attach_id = wp_insert_attachment( $attachment, $filename, 37 ); // you must first include the image.php file // for the function wp_generate_attachment_metadata() to work require_once(ABSPATH . 'wp-admin/includes/image.php'); $attach_data = wp_generate_attachment_metadata( $attach_id, $filename ); wp_update_attachment_metadata( $attach_id, $attach_data ); add_post_meta($post_id, '_thumbnail_id', $attach_id); function plum_comments($comment, $args, $depth) { $GLOBALS['comment'] = $comment; if (get_comment_type() == 'pingback' || get_comment_type() == 'trackback') : ?> trackbacks <?php elseif (get_comment_type() == 'comment') : ?> comment <?php endif; } ?>
Forum: Fixing WordPress
In reply to: Browser Title TroubleshootingAlso, is this rectified in the header php, index php, or in the styles css?
Forum: Fixing WordPress
In reply to: Browser Title TroubleshootingI also forgot to mention, as it is, my blog just says untitled document in the browser. I want it to say the name of the blog or what I choose to be there.
Forum: Fixing WordPress
In reply to: Browser Title TroubleshootingThat is currently what is in the <head> of my header php.
Forum: Fixing WordPress
In reply to: Browser Title Troubleshooting<html <?php language_attributes(); ?>> <!--<![endif]--> <head> <meta charset="<?php bloginfo('charset'); ?>"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="<?php bloginfo('description'); ?>"> <meta name="author" content=""> <title> Peter Lum Blog </title> <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /> <link href='https://fonts.googleapis.com/css?family=Cabin:700,400italic,400,700italic' rel='stylesheet' type='text/css'> <!--<link href="boilerplate.css" rel="stylesheet" type="text/css">--> <link href="<?php bloginfo('stylesheet_url'); ?>" rel="stylesheet" type="text/css"> <!--
Viewing 5 replies - 1 through 5 (of 5 total)