CodeBotics
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Patchwork] Patchwork Theme Page Width TemplateJust to clarify, are you trying to make the post with “Test Shop” as the title take up the entire page width? Or just take up the 1000px container in the middle?
This:
http://www.codebotics.co.uk/files/1.png”
or this:
http://www.codebotics.co.uk/files/2.png”Forum: Themes and Templates
In reply to: Turning the buttom menu into a contact barOr go to the footer.php template and then you can edit there
This will work, but causes problems when the theme is updated. It’s considered ‘the right way’ to make a child theme, as you can keep your changes when the theme is updated.
This theme uses next_posts_link()
Take a look at replacing it with paginate_links() if you don’t want to use a plugin. To replace it, you will need to create a child theme and then add a new loop.php, with the lines shown below replaced with paginate_links(etc).
<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'brunelleschi' ) ); ?></div> <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'brunelleschi' ) ); ?></div>Forum: Themes and Templates
In reply to: How to remove space above the logo image ?Adding this should fix the problem:
margin: 0 auto !important; padding: 0 !important;If you’ve already done this, as suggested above, yet it’s still not working and you have a caching plugin installed, make sure you delete its cache.
Forum: Themes and Templates
In reply to: Turning the buttom menu into a contact barI’ve made the child theme for you: http://www.codebotics.co.uk/files/adventure-journal-child.zip
I can’t guarantee that it’ll work, as I haven’t tested it. Once you’ve installed the theme (here: http://le-broc.dk/wp-admin/theme-install.php?tab=upload) go to http://le-broc.dk/wp-admin/theme-editor.php?file=footer.php&theme=adventure-journal-child and change “TYPE YOUR CONTACT DETAILS HERE” to whatever contact info you wanted to add.
Hope this helps!
Forum: Themes and Templates
In reply to: Turning the buttom menu into a contact barAs Andrew suggest, you first need to learn how to create a child theme. Once you’ve done this, add the following code to ‘footer.php’:
<?php /** * @package WordPress * @subpackage Adventure_Journal */ ?> <!-- begin footer --> <div class="clear"></div> <div id="footer"> <div class="nav-horz nav-footer"><div style="width: 100%; text-align: center">TYPE YOUR CONTACT DETAILS HERE</div></div> <?php wp_footer(); ?> <div class="clear"></div> </div> </div> </div> <div id="colophon"> <a id="ctxophon" href="http://www.contextureintl.com/?sref=aj" title="A WordPress Theme by Contexture International"></a> <a id="wpophon" href="http://www.wordpress.org" title="Powered by WordPress"></a> <div class="clear"></div> </div> </div> </body> </html>Forum: Themes and Templates
In reply to: Column Layout using ExcerptOkay, I just saw this: http://wordpress.org/support/topic/stripping-out-html-from-ltphp-the_excerpt-help?replies=2, so yes the_excerpt does strip out html.
How can I fix this? Is it possible to stop it stripping out divs, and then add a closing </div> if it shortens the excerpt?
I think I can add the closing </div> by using this:
return '</div><p id="readmore"><a href="'. get_permalink($post->ID) .'">Read More</a></p>';
instead of this:
return '<p id="readmore"><a href="'. get_permalink($post->ID) .'">Read More</a></p>';But I’m not sure how to stop div tags being stripped!
Forum: Themes and Templates
In reply to: Can't get wp_enqueue_script('jQuery') to work!Brilliant, it worked! Thanks for your help. Could you explain what’s happening here that fixes the problem? Is it because I needed to enqueue the flexslider script?