Magazine Basic
How do I get Magazine Basic not to show images and thumbails on frontpage? (4 posts)

  1. pierrrrre
    Posted 4 years ago #

    Hello :)
    I have this important thing to do with a site: to have the homepage as clean as possible, no pictures at all. I thought I had found the answer here: http://wordpress.org/support/topic/how-do-i-get-magazein-basic-to-not-show-thumbails?replies=5
    but it's maybe old now and I can't find the codes that codestripper member is talking about (I imagine that they changed).
    In the 'loop.php' I think they're some, and I found this hereunder in the functions.php file (I maybe understand that it's a kind of 'new' "// resize function"??) :

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Would it be possible to update the previous answer?
    It's really about no thumbnails and no pictures on homepage (even if I put the picture featured in the post -inside the post together with the text- after the <more> code it appears on the homepage!
    Thank you very much if you can explain me or give a direction to.


  2. pierrrrre
    Posted 4 years ago #

    Sorry wasn't knowing about the "rules". so herewith the code with pastebin, hoping that I understood what to dooo...
    the full excerpt is here: http://pastebin.com/34qyNWFd
    and anyway this is the block/piece in "functions.php" (last version of the theme) starting with

    // image grabber function
    function pbt_resize($w,$h,$class='alignleft',$showlink=true) {
    	global $more, $post;


    hoping to hear from some member here soon
    Bestest P

  3. c.bavota
    Theme Author

    Posted 4 years ago #

    Look for line 167 in loop.php and delete this whole block:

    if(function_exists('has_post_thumbnail') && has_post_thumbnail()) {
    	echo '<a href="'.get_permalink().'">';
    	the_post_thumbnail('thumbnail', array('class' => 'alignleft'));
    	echo '</a>';
    } else {
    	echo pbt_resize(get_option('thumbnail_size_w'),get_option('thumbnail_size_h'));

    That will remove all thumbnails and images from the front page and every archive page.

  4. pierrrrre
    Posted 4 years ago #

    Brilliant mr Bavota, thank you VERY much, works perfectly. Oh, and I just notice also that you are the theme's author: compliments!
    Well i'd have one more question for now if not annoying: now I've have a great and super clean list of posts using the option 3 in post layout, and I would like to add the category on each "title" on the home page: together with the post title and author I'd like to get the category* to show each post as:
    - title ...
    - date ...
    - published by ...
    - IN* ...
    Any advices? I tried but do not have enough knowledges about theses 'sentences' in the css..
    Bestest P.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic