GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   modifying wordpress posts so that the title is in the content and not as a header? (https://gfy.com/showthread.php?t=746779)

Angry Jew Cat - Banned for Life 06-28-2007 03:06 AM

modifying wordpress posts so that the title is in the content and not as a header?
 
is this doable? so i could have say, a left aligned image, with the title next to it, instead of sitting up on top of everything? i've been doing some googing to no avail...

woman 06-28-2007 04:11 AM

Of course you can. CSS is all what you need.

Angry Jew Cat - Banned for Life 06-28-2007 05:04 AM

Quote:

Originally Posted by woman (Post 12671636)
Of course you can. CSS is all what you need.

how exactly woul di go about doing a setup somewhat like this is a stylesheet? i thought about it a bit but didn't come up with anything that i know....


XXXXXXXXXXX---------------------------------------
X__________X_______TITLE OF THE POST HERE
X__________X
X__THUMB__X____written content for the post here
X__________X
X__________X
XXXXXXXXXXX

i justdon't see how i could wrap <?php the_content(''); ?> around the title div like that?

woman 06-28-2007 07:16 AM

I would do it the other way - bring the title in the post content too.
You have this line in your loop:
PHP Code:

<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>

1. Give it a display:none; - with this you can see it in your admin area but not on the blog.
PHP Code:

<h2 style="display:none;"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent link o <?php the_title(); ?>"><?php the_title(); ?></a></h2>

2. Install Exec-PHP, so you can write code in your posts
3. Write your post: thumbnail (style="float:left; margin:14px 1em 4px 0; padding:0px;") and <div>
PHP Code:

<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>

<p>YOUR TEXT<p></div><br clear="left" />

Hope this makes sense to you.


All times are GMT -7. The time now is 06:46 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123