Okay
  Public Ticket #928795
Logo image and WP_CONTENT_DIR
Closed

Comments

  •  2
    UnlimitedRealities started the conversation

    Hi there,

    We use WP_CONTENT_DIR option to move the content folder. And it causes a problem that it cannot change a text logo to a custom logo image.

    In tpls/header-logo.php, line 28,

    $logo_path = ABSPATH . substr($custom_logo_image, strpos($custom_logo_image, 'wp-content/uploads'));

    'wp-content' is hard-coded. I think it should refer WP_CONTENT_DIR option if it is defined.

    Regards,

    Minoru

  • [deleted] replied

    Hi,

    Yes you are right, that was developed long time ago and I didn't thought about this. So here is the quickfix for this:

    $uploaddir = wp_upload_dir();
    $logo_path = str_replace( $uploaddir['baseurl'], $uploaddir['basedir'], $custom_logo_image );

    See where to place this code:


    (view large version)

    The new version of Aurum will contain this change.

  •  2
    UnlimitedRealities replied

    Thank you for that. It works great.

    Regards,

    Minoru

  • [deleted] replied

    Hi Minoru,

    Glad to hear that

    If you like our theme, it would help us a lot if you could give us five star rating on themeforest from your Downloads tab, (if you don't know how, just open this link).

    A huge thank you from Laborator in advance and have a great day!

    Will set this ticket as solved from here.