wp-Guy
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Access WordPress from subdomainI think I will go insane!
Is there anything I should change in the .htaccess file or something?
I would provide you more information, but I don’t know what could help.
Forum: Fixing WordPress
In reply to: Access WordPress from subdomainAnyone, please!
Forum: Fixing WordPress
In reply to: Title tag looks different from the h1 titleAnyone, please?
Forum: Fixing WordPress
In reply to: Modify code for inserted images, possible?I solved the last problem. I was entirely focused on the div issue that I forgot to play with the options.
Again Otto42, thank you very much for your help and for being so patient with a newbie like me.
Forum: Fixing WordPress
In reply to: Modify code for inserted images, possible?Thank you very much, Otto42. It fixed the duplicated div issue.
Now the only problem I have, is that I cannot remove the anchor tag inside the div.
I’m starting to think that’s not possible.Forum: Fixing WordPress
In reply to: Modify code for inserted images, possible?Since the div “whatever” appears duplicated and I want to prevent the anchor tag from being inserted, I thought it would be good to try something else.
From the code Otto42 gave me, I modified it to be like this:
add_filter( 'image_send_to_editor', 'div_stuff', 10, 7); function div_stuff($html, $id, $alt, $title, $align, $url, $size ){ return "<div class='whatever'> <img class='alignnone' title='$title' src='$url' alt='' width='400' height='300' /> </div>";
The problem with this code, is that the $url variable gives me the url for the large image, not for the medium sized image, which is the one I need.
Thanks in advance.
Forum: Fixing WordPress
In reply to: Modify code for inserted images, possible?The last time I tried it didn’t work, but this time the div I want to add appears twice. Looks like this:
<div class="whatever"><a href="https://localhost/wp-content/uploads/2008/06/large-image.jpg"> <div class="whatever"><img class="alignnone size-medium wp-image-24" title="image-name" src="https://localhost/wp-content/uploads/2008/06/small-image.jpg" alt="" width="400" height="300" /></div> </a></div>
I have two questions:
How can I avoid having that div duplicated?I don’t want an anchor tag inside the div, how can I prevent it from being inserted automatically?
Thanks in advance.
Forum: Fixing WordPress
In reply to: Modify code for inserted images, possible?Could anyone help me, please?
Forum: Fixing WordPress
In reply to: Modify code for inserted images, possible?I’m just starting to learn PHP, so I don’t know how to use the information you just provided me.
Forum: Fixing WordPress
In reply to: Modify code for inserted images, possible?Anyone, please?
I’d like to replace the anchor tag with a div, is that possible?Forum: Fixing WordPress
In reply to: Comment template tags?I just figured out I could use HTML’s anchor tag and name attribute to do what I wanted. thanks anyway.
Forum: Fixing WordPress
In reply to: how can I order category?I know it’s old, but for anyone interested here’s the plugin:
Forum: Plugins
In reply to: Category OrderThank you very much, wp_guy.
I’m new to wordpress and I was getting a little scared about not being able to modify the order of the categories.
Bye!!
Forum: Fixing WordPress
In reply to: Categories hierachyThank you very much, moshu.
The parameter hierarchy was set to “0” and I changed it to “1”.Forum: Fixing WordPress
In reply to: Hiding the blog titleH1 docsblog!
I think you could use the CSS attribute “text indent” to make the title disappear.
it would look something like this:#header h1 { text-indent: -9999px; }
With this technique search engines would see the name of your site, but your users would see the image logo, which is very good.
I just read that if your theme doesn’t have a header.php file then wordpress will use the default theme’s header.php file.
This is my first contribution. Hope it helps.
Bye!