• Hi!

    I got a couple of newbie question, I am not that good with css and template editing, and I am going crazy.

    You can check the website I am referring here: https://money-making.info

    My first question, when I installed this theme, the categories in the sidebar look like you see them (I mean, white letters on a blue rectangle as the different titles of the default widgets (category, recent posts, archives…). BUT, when I add a widget, this default categories dissapear, and so does the formatting, the new widgets appear but without the nice dark blue box and white letters titles. I don’t know hot to add widgets that do keep that formatting, or how to add it manually in the css, because I obviously do want to keep that nice format.

    The other question, how can I replace the header big text with a logo, and make that logo a clickable one pointing to the root url? I do not want it to be placed as part of the background, but as an image.

    Anyway, thank you!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Without seeing a widget’s output, it’s hard to see what could be done to help.

    how can I replace the header big text with a logo, and make that logo a clickable one pointing to the root url?

    On that theme, it will take quite a fair amount of customisation to to add an image to the header markup.

    Thread Starter Diegan

    (@diegan)

    Hi esmi, thank you for your answer.

    Here is an image of how a widget looks when I add it (the default ones dissapear).

    https://img128.imageshack.us/img128/7301/screenshot011.png

    About the logo…. is it that hard to just put a logo?

    My guess is that your functions.php file needs editing to replicate the non-widgetized markup when you use widgets.

    And, yes – looking at your current theme/design, adding a logo would involve a fair bit of work. The design simply isn’t built to allow the easy insertion of a logo image.

    Thread Starter Diegan

    (@diegan)

    Thank you again for your answer, I will try to put a logo there.

    I paste here my functions.php, if someone with a little knowledge of php can take a look at it and maybe help me with making those widgets work like the default ones, it’ll be appreciated ??

    <?php

    if ( function_exists(‘register_sidebar’) )
    register_sidebar(array(
    ‘before_widget’ => ‘<div class=”block”>’,
    ‘after_widget’ => ‘</div>’,
    ‘before_title’ => ‘<div class=”label”>’,
    ‘after_title’ => ‘</div>’,
    ));

    function mdv_recent_posts($no_posts = 5, $before = ‘

    • ‘, $after = ‘
    • ‘, $hide_pass_post = true, $skip_posts = 0, $show_excerpts = false, $include_pages = false) {
      global $wpdb;
      $time_difference = get_settings(‘gmt_offset’);
      $now = gmdate(“Y-m-d H:i:s”,time());
      $request = “SELECT ID, post_title, post_excerpt FROM $wpdb->posts WHERE post_status = ‘publish’ “;
      if($hide_pass_post) $request .= “AND post_password =” “;
      if($include_pages) $request .= “AND (post_type=’post’ OR post_type=’page’) “;
      else $request .= “AND post_type=’post’ “;
      $request .= “AND post_date_gmt < ‘$now’ ORDER BY post_date DESC LIMIT $skip_posts, $no_posts”;
      $posts = $wpdb->get_results($request);
      $output = ”;
      if($posts) {
      foreach ($posts as $post) {
      $post_title = stripslashes($post->post_title);
      $permalink = get_permalink($post->ID);
      $output .= $before . ‘‘ . $post_title . ‘‘;
      if($show_excerpts) {
      $post_excerpt = stripslashes($post->post_excerpt);
      $output.= ‘
      ‘ . $post_excerpt;
      }
      $output .= $after;
      }
      } else {
      $output .= $before . “None found” . $after;
      }
      echo $output;
      }
      ?>

    Try replacing:

    if ( function_exists('register_sidebar') )
    register_sidebar(array(
    'before_widget' => '<div class="block">',
    'after_widget' => '</div>',
    'before_title' => '<div class="label">',
    'after_title' => '</div>',
    ));

    with

    if ( function_exists('register_sidebar') )
    	register_sidebar(array(
    	'before_widget' => '',
    	'after_widget' => '',
    	'before_title' => '<h2">',
    	'after_title' => '</h2>',
    ));

    Thread Starter Diegan

    (@diegan)

    Hehe, thank you! I’ll try that!

    Thread Starter Diegan

    (@diegan)

    I tried it, you can check how it looks, I believe there’s an image missing there, the one that goes at the back of the letters. Also, the letter did not get the correct formatting.

    Maybe I just should change template….

    The thing you said about the logo being hard to add, does it mean this theme sucks? I mean, good themes should have an easy option for a logo, or that’s not necessary so?

    No – it doesn’t mean that the theme is bad. Some themes have header customisation options that are available via the Admin interface. Others require that you have at least a little knowledge of CSS or HTML.

    The theme you have chosen was never really intended to be used with a graphical header. It’s a pretty low-graphic, almost minimalistic theme and there is quite a call for such themes. If you want to use a graphical header, though, it might be better if you start with a theme that already has such a header.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Newbie questions: widgets and logos’ is closed to new replies.