themystical
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Display something in a certain manner on index page onlyIf the link you added is something like this it wont work,
<li><a href="https://ceciliabjerling.com/wordpress">Start</a></li>
instead you should use something like this:
<li<?php if (is_home()) echo " class=\"current-cat\""; ?>><a href="<?php bloginfo('url'); ?>">Start</a></li>
but that could be a bit different, dipends on the code you have in your header.php
basically the if statment is gonna add a class=”current-cat” to the home link when the home page is displayed, this class is defined in the css and is gonna higlight the current selection.Forum: Themes and Templates
In reply to: Photoshop question for following themeI see, that’s common with transparent gif, jagged edges, that’s because the text in photoshop is not anti-alias to the background, just google for it and you should find plenty fo tutorials about it. Anyway I sent you an email with the edited files.
Forum: Themes and Templates
In reply to: Photoshop question for following themeI made a video that hopefully can help you.
Forum: Fixing WordPress
In reply to: How can I have more text widgets in my template?look at line 530 in widgets.php.
Great, but be aware that in IE6 and 7 the sidebar drops down the bottom, check margin and padding, even just one extra pixel can cause problems, btw it looks good in firefox.
Have a nice one.
From the source code I see that the theme is pulling
#page { background: url("https://heartquasm.org/blog/wp-content/themes/my themes/images/kubrickbg-ltr.jpg") repeat-y top; border: none; }
Also there are discrepancies in the size between the header, the sidebar and content (.narrowcolumn).
header is 670px
sidebar is 190px
.narrowcolumn is 550190 + 550 = 740 therefore pushing the sidebar at the bottom and showing the white part of the image background mentioned above.
also keep in mind paddings and margins of this element when you adjust them.
As last thing try also to add at the end of the css an universal selector like…
* {margin:0px; padding:0px;}
and see if that helps too.
Forum: Fixing WordPress
In reply to: How can I have more text widgets in my template?Being said I’m not expert, I think this should work. You are using wp 2.1.3 right? So I assume you installed the widgets plugin, right?
Well I changed few things in the widgets.php located in ../wp-content/plugins/widgets/
Buckup everything, you never know, if something fails don’t blame me ok? ??
I did a search in the code for widget_text and found this:
function widget_text_setup() { $options = $newoptions = get_option('widget_text'); if ( isset($_POST['text-number-submit']) ) { $number = (int) $_POST['text-number']; if ( $number > 9 ) $number = 9; if ( $number < 1 ) $number = 1; $newoptions['number'] = $number;
You can see the number 9, so I changed it to lets say 15
After that just few lines below that code there is this:
function widget_text_page() { $options = $newoptions = get_option('widget_text'); ?> <div class="wrap"> <form method="POST"> <h2><?php _e('Text Widgets', 'widgets'); ?></h2> <p style="line-height: 30px;"><?php _e('How many text widgets would you like?', 'widgets'); ?> <select id="text-number" name="text-number" value="<?php echo $options['number']; ?>"> <?php for ( $i = 1; $i < 10; ++$i )
On the line (should be 885) with <?php for ( $i = 1; $i < 10; ++$i ) I changed number 10 to 16, remember, add one to the number of text widgets you set, so in my case I want 15 and this number is set to 16.
After that, one more step, look for:
function widget_text_register() { $options = get_option('widget_text'); $number = $options['number']; if ( $number < 1 ) $number = 1; if ( $number > 9 ) $number = 9; for ($i = 1; $i <= 9; $i++)
And as before change all 9s to your needs, as for sake of this example I set it to 15.
Save the files and test that everything works fine, if everything fails revert to the original copy.
I think this should do it, if any more knowladgable guy think this is wrong and I’m missing something please correct me.
Again, before you do anything I advise you to back up a copy of widgets.php file, well actually backup everything! Just in case.
Have a nice one, bye.