Forums

[Plugin: Dynamic Headers] dh_get_image_alt() and custom wp-content folder (2 posts)

  1. mtz
    Member
    Posted 1 year ago #

    Hi, great plugin, best custom header solution out there. Still theres two things i miss and would love to see in a coming update.

    1) A function that allows me to display the images alt-text. Could be called dh_get_image_alt(), right?

    2) I'm using wordpress' define for customizing the name of the wp-content-folder, its defined by
    define( 'WP_CONTENT_URL', 'http://my.url/name_of_content_folder');
    and
    define( 'WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/name_of_content_folder'' );
    in wp-config.php. Most modern plugins follow these settings, for your plugin i had to create an own wp-content/header-images folder. Would you mind making it compatible? Maybe this helps: http://alexrabe.de/2008/08/06/the-hassle-with-wp_content_url-and-wp_plugin_dir/

    Thanks for your great work anyway!

    Moritz

    http://wordpress.org/extend/plugins/dynamic-headers/

  2. mtz
    Member
    Posted 1 year ago #

    adding this

    1) First thing i made work myself, here is the code:

    // START added by mtz
    function dh_get_page_image_alt() {
    	$load_this_media = get_media_header_url();
    	if(get_option('dhnd_'.$load_this_media.'_alt') != ""){
    		return get_option('dhnd_'.$load_this_media.'_alt');
    	} else {
    		return "";
    	}
    }
    // END added by mtz

    2) Looking at the code, custom wp-content-folders seem to be implemented here and there - but the backend plugin page kept showing me an error message.

Topic Closed

This topic has been closed to new replies.

About this Topic