Welcome to our blog! Here you can find stuff about web development, software engineering, WordPress & about our projects and interests.
By default, when you click on the Read More link, the web page loads and then “jumps” to the spot where the <–more–> tag is set in the post. If you do not want that “jump”, you can use this code in your theme’s functions.php:
function remove_more_jump_link($link) {
$offset = strpos($link, '#more-');
if ($offset) {
$end = strpos($link, '"',$offset);
}
if ($end) {
$link = substr_replace($link, '', $offset, $end-$offset);
}
return $link;
}
add_filter('the_content_more_link', 'remove_more_jump_link');
First, there are twotypes of files – .mo and .po (in your wordpress languages and in your themes)
You could edit the .po file directly with any editor and then use poedit to generate the binaty .mo files.
This function will return the theme directory URL so you can use it in other functions:
get_bloginfo('template_directory');
Alternatively, this function will echo the theme directory URL to the browser:
bloginfo('template_directory');
So an example for an image in the themes images/headers folder would be:
<img src="<?php bloginfo('template_directory'); ?>/images/headers/image.jpg" />
There a few tricks to get this working for your online store with Joomla.
1. Make sure you have installed Virtuemart 1.1.4 and Joomfish 2.0.4 over Joomla 1.5.20 (it should work with any 1.5 version). System Legacy plugin should be on.
If you want to add an image that resizes according to the monitor or the browser size just follow the steps:
First put the image exactly after the opening <body> tag:
<body>
<img src=”images/bg.jpg” class=”bg” />
Then go to the CSS and add this:
img.bg {
bottom:0;
min-width:1024px;
position:fixed;
right:0;
width:100%;
}
Then add some exception CSS for IE6, because it doesn’t get this stuff to work well.
Go to your language file. For example: /administrator/language/en-GB/en-GB.ini and change line 11:
DATE_FORMAT_LC2=%A, %d %B %Y %H:%M to DATE_FORMAT_LC2=%A, %d %B %Y
If this doesn’t work try this: http://forum.joomla.org/viewtopic.php?f=470&t=347359&start=0
How to style wordpress default comment form for TwentyTen?
Published by admin on 2010-10-09Go to your theme open comments.php if you have one:
and find the line:
comment_form();
Replace it with this code which you could change as you like:
For more information check the wordpress docs: http://codex.wordpress.org/Template_Tags/comment_form