Support

Please consider registering
guest

Log In Members

Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Hide comments alltogether
18. April 2011
08:59
Member
Forum Posts: 9
Member Since:
18. April 2011
Offline

Hey,

 

First of all, thanks for sharing such a great theme with us :)

 

Now, I wish to use altop as my theme for my static website. Therefor I do not wish to have any comment feature. Also, I want the date and the "x comments" that is shown right of the post hidden. Furthermore "filed under" and the separator below that should be hidden as well.

 

Could you tell me which codes to edit/delete without fudging the whole thing up?

 

Thanks in advance!

18. April 2011
09:18
Admin
Forum Posts: 7
Member Since:
28. Dezember 2009
Offline

Hi WebGremlin,

to hide all comments and comment features, plesae take a look at this post; Maybe it's what your are looking for… wink

The "filed under" line is a part of page.php and single.php. I'll check this later, if I'm back at home and give you the code-lines.

 

18. April 2011
09:27
Member
Forum Posts: 9
Member Since:
18. April 2011
Offline

Thanks for the quick reply, that link seems to cover most of my desires.

 

Have a good day at work wink

18. April 2011
10:10
Member
Forum Posts: 9
Member Since:
18. April 2011
Offline

Right, the codes in the link you gave me weren't all there, but I managed to get rid of the most.

 

The date and everything related to comments are now gone, but I can't seem to hide the separator below the "edit" link, and the seperator on the right side of the post. Any tips?

18. April 2011
17:10
Admin
Forum Posts: 7
Member Since:
28. Dezember 2009
Offline

If you don't need the "Edit-Link", the "Author", the "Filed under" or the "Post-Tags" in pages or articles, you can delete the <p class="postinfo"> completly.

Otherwise, the seperaror between "Edit" and the rest is in this line;

<?php edit_post_link(__('Edit', 'altop'), ' &int; ', ' &int; '); ?> <br />

"&int;" ist the seperator.

 

18. April 2011
21:58
Member
Forum Posts: 9
Member Since:
18. April 2011
Offline

Great! Thanks. That leaves me with just one more thing, the separator and the white area next to the post. You know, where it used to show the date and such.

 

Can I hide that as well and stretch the post?

 

Thanks.

18. April 2011
23:18
Admin
Forum Posts: 7
Member Since:
28. Dezember 2009
Offline

Hi,

sure, you can hide this area too.

Search for this block;

<div class="postdate">
                    <span class="postdate_day"><?php the_time(__('jS', 'altop')); ?></span><br />
                    <span class="postdate_month"><?php the_time(__('F Y', 'altop')); ?></span><br />
                    
                    <?php if (comments_open() ) { ?>
                    <img src="<?php echo bloginfo('template_directory'); ?>/images/comments.png" alt="Comments" align="bottom" /> <?php comments_popup_link(__('0 Comments', 'altop'), __('1 Comment', 'altop'), __('% Comments', 'altop'), '', __('Closed', 'altop') ); ?><br />
                    <?php } ?>
                
                </div>

 

Delete this to "stretch" the post content. But note, you will lose all informations about the post date!

18. April 2011
23:47
Member
Forum Posts: 9
Member Since:
18. April 2011
Offline

Thanks for you quick replies and great support!

 

One final question…

 

Is it possible to have a separator like that next to the sidebar? I kinda like it how it looks and how it separates (obviously) the text from the sidebar. :)

19. April 2011
00:35
Member
Forum Posts: 9
Member Since:
18. April 2011
Offline

Also, I just deleted the code you mentioned from index.php, but nothing's changed…

19. April 2011
07:17
Admin
Forum Posts: 7
Member Since:
28. Dezember 2009
Offline

Hey,

1. Thought, you have deleted the block completly ?! You need a seperator for….?
2. Is there a cache plugin running? Have you cleared the browser cache too?

Have a nice day!

Thomas

19. April 2011
10:10
Member
Forum Posts: 9
Member Since:
18. April 2011
Offline

This is the part I deleted:

 

 

<div class="postdate">
<span class="postdate_day"><?php the_time(__('jS', 'altop')); ?></span><br />
<span class="postdate_month"><?php the_time(__('F Y', 'altop')); ?></span><br />
<img src="<?php echo bloginfo('template_directory'); ?>/images/comments.png" alt="Comments" align="bottom" /> <?php comments_popup_link(__('0 Comments', 'altop'), __('1 Comment', 'altop'), __('% Comments', 'altop'), '', __('Closed', 'altop') ); ?><br />
<?php if (is_sticky()) { ?> 
<img src="<?php echo bloginfo('template_directory'); ?>/images/sticky.png" alt="Sticky Post" />
<?php } ?>
</div>

<div class="postdate"> <span class="postdate_day"><?php the_time(__('jS', 'altop')); ?></span><br /> <span class="postdate_month"><?php the_time(__('F Y', 'altop')); ?></span><br /> <img src="<?php echo bloginfo('template_directory'); ?>/images/comments.png" alt="Comments" align="bottom" /> <?php comments_popup_link(__('0 Comments', 'altop'), __('1 Comment', 'altop'), __('% Comments', 'altop'), '', __('Closed', 'altop') ); ?><br /> <?php if (is_sticky()) { ?>  <img src="<?php echo bloginfo('template_directory'); ?>/images/sticky.png" alt="Sticky Post" /> <?php } ?> </div>

 

I've got no cache plugins or similiar running. All other changes take in affect immediately.

 

What I meant with the separator… Obviously I would like the post to stretch out to fill up the white gap, but I don't want the separator separating the post from the sidebar gone.

 

Thanks.

 

 

19. April 2011
10:33
Admin
Forum Posts: 7
Member Since:
28. Dezember 2009
Offline

Is it possible to get a link to your site?

Normaly it should be closer to the sidebar if you deleted this block… :(

 

19. April 2011
14:35
Admin
Forum Posts: 7
Member Since:
28. Dezember 2009
Offline

Thanks for the link – now i know what you mean… :)

The width of the content box is fixed to 640px.

You easily can change this in the style.css

Search for this:

.con_left {
    float: left;
    width: 640px;
}
Set the width value to 700px or higher to get the content closer to the sidebar.
19. April 2011
14:42
Member
Forum Posts: 9
Member Since:
18. April 2011
Offline

Ah, that's just too obvious.

 

Thanks for all the help!

 

EDIT:

 

Meh, cheered too soon. As soon as I edit the width, even just by one px, the sidebar relocates itself to below the text, rather than next to it.

19. April 2011
15:44
Admin
Forum Posts: 7
Member Since:
28. Dezember 2009
Offline

Sorry, my mistake… embarassed

The class " .con_left " is the whole box for the post (including the "deleted" comment area)

You have to change the width value in class " .entry ".

 

You will find it in the style.css under;

.con_left .entry, .con_right .entry, .con_left .entry_wide, .con_right .entry_wide {
    background: url("images/entry-side.png") no-repeat scroll right top transparent;
    float: left;
    width: 470px;
}

Change this to  … px. wink

19. April 2011
16:12
Member
Forum Posts: 9
Member Since:
18. April 2011
Offline

Perfect. Dankeschön!

Forum Timezone: Europe/Berlin

Most Users Ever Online: 33

Currently Online:
6 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

WebGremlin: 9

Bolfri: 5

pozzecca: 3

isa: 1

pcgeek: 1

Orange: 1

Member Stats:

Guest Posters: 42

Members: 9

Moderators: 0

Admins: 1

Forum Stats:

Groups: 1

Forums: 3

Topics: 51

Posts: 218

Moderators:

Administrators: Thomas (7)

Keine Kommentare

Noch keine Kommentare

Entschuldige, das Kommentarformular ist zurzeit geschlossen.