CodeBotics
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Shortcodes for Premium ThemesFor the developer this is a massive oversight, they should appreciate you contacting them and pointing out that they’re missing key documentation!
For now, it might be worth going in functions.php and looking for ‘add_shortcode’. The developer may have put them in a separate file though. Have you tried looking for shortcodes.php or something similar?
Forum: Themes and Templates
In reply to: Making a Child themeIf you only want to change the CSS, then you only need style.css in theme-child. Style.css is the only required file for a child theme.
I use the following:
/* Theme Name: Call it whatever you want Author: Your Name Description: Child theme, and anything else you want Author URI: your URL, you don't have to add this. Template: themename */ @import url(../theme/style.css);Then I add my custom CSS below that, and it overrides the old CSS. Any files you don’t add to your child theme just default to the original themes files 🙂
It is worth looking at the link Andrew posted, to get a better idea of what’s going on.
Forum: Themes and Templates
In reply to: Help with "Date Posted" on homepageStrange, I don’t know why that would break the site. Anyway, you just need to remove the bit <?php the_time(‘F j, Y’) ?> up to the closing </p>
Like this:
<h2 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'cc' ) ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <p class="date"><?php the_time('F j, Y') ?></p> <div class="entry"> <?php do_action('blog_post_entry')?> </div> <?php $tags = get_the_tags(); if($tags) { ?> <p class="postmetadata"><span class="tags"><?php the_tags( __( 'Tags: ', 'cc' ), ', ', '<br />'); ?></span> <span class="comments"></span></p> <?php } else {?> <p class="postmetadata"><span class="comments"></p> <?php } ?> </div> </div> <?php do_action( 'bp_after_blog_post' ) ?> <?php endwhile; ?> <div class="navigation"> <div class="alignleft"><?php next_posts_link( __( '← Previous Entries', 'cc' ) ) ?></div> <div class="alignright"><?php previous_posts_link( __( 'Next Entries →', 'cc' ) ) ?></div> </div> <?php else : ?> <h2 class="center"><?php _e( 'Not Found', 'cc' ) ?></h2> <p class="center"><?php _e( 'Sorry, but you are looking for something that isn\'t here.', 'cc' ) ?></p> <?php locate_template( array( 'searchform.php' ), true ) ?> <?php endif; ?> </div> <?php do_action( 'bp_after_blog_home' ) ?> </div><!-- .padder --> </div><!-- #content --> <?php get_footer() ?>Forum: Themes and Templates
In reply to: Messed up alyeska themePerhaps it is easier to force the alyeska theme editor to overwrite the wordpress editor’s styles, perhaps by adding !important to the generated CSS code. Contact the theme vendor, it’s really down to them to help you out here.
Forum: Themes and Templates
In reply to: header all across pageIf this is a paid theme, it’s much more helpful if you contact the theme’s own support team. Otherwise the volunteers here are helping the theme owner make money without making a penny themselves.
Forum: Themes and Templates
In reply to: Submitting Custom Options without RefreshAh, sorry I didn’t make the link! You’re right, Javascript is needed no matter what by the looks of it.
Forum: Themes and Templates
In reply to: Help with "Date Posted" on homepageYou need to add some code to the loop. Open index.php, then underneath <h2 class=”posttitle”>blah blah</h2> put this:
<p class="date"><?php the_date()></p>Forum: Themes and Templates
In reply to: Submitting Custom Options without RefreshjQuery => Javascript 😉 I found this great jQuery Form Plugin: http://www.malsup.com/jquery/form/
Which I called using:
function form_no_refresh() { ?> <script src="http://malsup.github.com/jquery.form.js"></script> <script> // wait for the DOM to be loaded jQuery(document).ready(function() { // bind 'myForm' and provide a simple callback function jQuery('#adminform').ajaxForm(function() { alert("Thank you for your comment!"); }); }); </script> <?php } add_action('admin_head', 'form_no_refresh');It’s not ideal for two reasons:
- It relies on this existing: http://malsup.github.com/jquery.form.js. I could download it locally though.
- It loads the script on every admin page, but I can fix this by checking if the page is the page I’m expecting then calling the function.
But, it works, so I’m keeping it!
Forum: Themes and Templates
In reply to: [Polaroids] [Theme: Polaroids] Polaroid theme helpI’m on Windows, so I can’t really help regarding the Mac. I’ve done the above for you, so you just need to download it then upload it to your site.
Hopefully, this should all work as expected 🙂
Forum: Themes and Templates
In reply to: Turning the buttom menu into a contact barI copied the styles from the original theme, and forgot to get rid of them when I added it to the code above!
Forum: Themes and Templates
In reply to: [Polaroids] [Theme: Polaroids] Polaroid theme helpNo problem 🙂
There are two possible solutions to that, I have a hunch that these three things are pages you’ve created in WordPress, correct?
If that’s the case, and you want it to add any more pages you might create in the future, then you can do the following:- On your computer, create a folder named “polaroids-child”
- In this folder, create a file called “style.css”. Open this in a text editor, then paste the following code:
/* Theme Name: Polaroids Child Author: Your Name Description: Child theme Author URI: NA Template: polaroids */ @import url(../polaroids/style.css); #footermenu { font-family: "Times New Roman"; font-size: 12px; font-weight: normal; letter-spacing: 2px; text-transform: uppercase; color: #111; } - Now create a file called “footer.php” in the same folder
- Add the following code:
</div> <div id="footer"> <div id="footermenu"> <ul> <?php wp_list_pages('sort_column=menu_order&title_li='); ?> </ul> </div> </div> </div> </div> <?php wp_footer()?> </body> </html> - Save the two files
- Send the folder to a zip archive
- Upload it to your blog as a theme, and activate it
It should all work!
Forum: Themes and Templates
In reply to: Turning the buttom menu into a contact barNo problem 🙂 You can get rid of the padding-left and padding-right if you like, they’re not changing how it looks at all.
Forum: Themes and Templates
In reply to: Turning the buttom menu into a contact barAnd if you want the colour to be the same as the links originally were:
style="width: 100%; text-align: center; margin-top: 0px; padding-top: 12px; padding-right: 10px; padding-bottom: 13px; padding-left: 10px; color: #603913;"Forum: Themes and Templates
In reply to: Turning the buttom menu into a contact barTry changing
style="width: 100%; text-align: center"tostyle="width: 100%; text-align: center; margin-top: 0px; padding-top: 12px; padding-right: 10px; padding-bottom: 13px; padding-left: 10px;"Forum: Themes and Templates
In reply to: [Polaroids] [Theme: Polaroids] Polaroid theme helpI’m not entirely sure what you want to do with the menus, could you elaborate?