HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/church.martyknows.com/wp-content/themes/quickpress/functions.php
<?php

/* Register sidebar widgets */

function quickpress_widgets_init() {

register_sidebar(array(

        'name' => __( 'Sidebar 1', 'quickpress' ),

        'id' => 'sidebar-1',

        'before_widget' => '',

        'after_widget' => '',

        'before_title' => '<h4>',

        'after_title' => '</h4>',

    ));

register_sidebar(array(

        'name' => __( 'Sidebar 2', 'quickpress' ),

        'id' => 'sidebar-2',

        'before_widget' => '',

        'after_widget' => '',

        'before_title' => '<h4>',

        'after_title' => '</h4>',

)); 

register_sidebar(array(

        'name' => __( 'Sidebar 3', 'quickpress' ),

        'id' => 'sidebar-3',

        'before_widget' => '',

        'after_widget' => '',

        'before_title' => '<h4>',

        'after_title' => '</h4>',

)); 

register_sidebar(array(

        'name' => __( 'Nav Menu', 'quickpress' ),

        'id' => 'nav-menu',

        'before_widget' => '',

        'after_widget' => '',

        'before_title' => '',

        'after_title' => '',

)); 

}

add_action( 'init', 'quickpress_widgets_init' );

/* Add feeds */

add_theme_support('automatic-feed-links');

// Comment Reply Script

add_action( 'wp_enqueue_scripts', '_enqueue_scripts' );

function _enqueue_scripts(){

    // If single, threaded and open

    if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ){

        wp_enqueue_script( 'comment-reply' );

    }

} 

/* Load Stylesheet */

function quickstyle() {

    wp_enqueue_style( 'style-name', get_stylesheet_uri() );

}

add_action( 'wp_enqueue_scripts', 'quickstyle' );

/* Custom Background */

$args = array(

	'default-color' => 'EDE8E2',

	'default-image' => get_template_directory_uri() . '/images/background.jpg',

);

add_theme_support( 'custom-background', $args );

// post thumbnails

add_theme_support('post-thumbnails');

/* Title filter */

function quick_title( $title ) {

    // Get the Site Name

    $site_name = get_bloginfo( 'name' );

    // Prepend it to the default output

    $filtered_title = $site_name . $title;

    // Return the modified title

    return $filtered_title;

}

add_filter( 'wp_title', 'quick_title');

/* Content width */

if ( ! isset( $content_width ) )

	$content_width = 540;

?>