Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

HTML to Wordpress Help Required!

Featured Replies

Hi guys,

 

You might have seen previous posts from me, taking a PSD to a Wordpress site. I've tried to circumnavigate the root of paying an agency to do this, and have managed to get the PSD into an HTML file without too many issues - see it here

 

The next step is obviously getting it into the Wordpress template. The guides and tutorials (I've looked at about 30 so far!) haven't been particularly clear, and require a lot of PHP knowledge from what I can establish - not something I have, but I'm trying to learn!

 

What are people's thoughts on developing it into a WP theme using a child theme - is this the best way to do it or should I modify the standard twentyten/eleven themes that come with WP?

 

Thanks!

  • 4 weeks later...

Hi guys,

 

You might have seen previous posts from me, taking a PSD to a Wordpress site. I've tried to circumnavigate the root of paying an agency to do this, and have managed to get the PSD into an HTML file without too many issues - see it here

 

The next step is obviously getting it into the Wordpress template. The guides and tutorials (I've looked at about 30 so far!) haven't been particularly clear, and require a lot of PHP knowledge from what I can establish - not something I have, but I'm trying to learn!

 

What are people's thoughts on developing it into a WP theme using a child theme - is this the best way to do it or should I modify the standard twentyten/eleven themes that come with WP?

 

Thanks!

 

Have a look at this website http://www.wpdesigner.com/2007/02/19/so-you-want-to-create-wordpress-themes-huh/ it really helped when i started templating Wordpress

I've also found places that will do it for $50-100 in the past. Depends how much your time is worth

  • 3 weeks later...
  • Author

I've also found places that will do it for $50-100 in the past. Depends how much your time is worth

 

I'd happily pay for the service - but everyone seems to chuck on so many extras when I just want the home page and single post/archive page, no custom widgets etc. Anywhere you'd recommend?

  • Author

So using some very rudimentary tutorials I've managed to cobble together a theme which seems to have some success working, but some of the images aren't quite lining up or showing. Zip file attached of the theme folder. If someone could take a look that would be great - the only thing I can think of is that my stylesheet isn't calling out in the .php files correctly. I've also attached an HTML file in the zip showing the look I'm after!

 

wordpress.zip

  • Author

your a web designer and you can't turn a html file into a wordpress template? :bangb:

 

I run the design side of it, I have coders doing the work for me normally but due to various circumstances they've not been able to. This is a side project to help teach myself the coding side of it. Wordpress is still something new to me.

Edited by ppdesign

  • Author

see now the images will show

 

Brilliant, thanks!

 

Can you give me some idea of what I was doing wrong? I've noticed the HTML code in the place of the loop, so have adjusted this to an example of a Loop that I found in a tutorial. It's now not displaying the post, but shows the title of the latest post.

 

Ideally I want to show the latest 2 posts on the homepage - can I use code in the Loop/Index page to call that out? The other pages will just be pages that display the posts based on their category tags to make it easier for my friend to update themselves.

 

The footer also doesn't seem to be displaying - is this to do with the index.php?

sian.zip

Edited by ppdesign

well i have done this but for some reason i am not sure why the loop is breaking may be some expert here will be able to help

 

 

and for image i used

<img alt="OK!TV"  src="<?php bloginfo('template_directory'); ?>/images/pngs/oktv.png" />

the code

<?php bloginfo('template_directory'); ?>

shows the right path to ur image folder

 

live link

Edited by sash_oo7

  • Author

well i have done this but for some reason i am not sure why the loop is breaking may be some expert here will be able to help

 

 

and for image i used

<img alt="OK!TV"  src="<?php bloginfo('template_directory'); ?>/images/pngs/oktv.png" />

the code

<?php bloginfo('template_directory'); ?>

shows the right path to ur image folder

 

live link

 

Brilliant, thanks. Thought the image thing might be something silly like that!

 

I've got the posts showing now, just need to figure out how to only show 2 on the home page, and to fit them into the right area!

  • Author

In the WP settings -> reading you can change how many posts to show on the front page.

 

Ah yup, got that.

 

I'm wondering why my second post isn't showing below the first properly? Is there a way to rectify this? I'm assuming it's in the CSS or WP loop?

 

Thanks to everyone for the help so far - learning loads!

 

post-29389-0-32781600-1319919214_thumb.png

<?php get_header(); ?>
<?php get_sidebar(); ?>
<div id="content">
<div class="blogcontent">

        <?php if ( have_posts() ) : ?>
        <?php while ( have_posts() ) : the_post(); ?>

			<div class="post">
				<div class="post_title"> 

					<h2><a href=”<?php the_permalink(); ?>“><?php the_title(); ?></a></h2> 

					<small><?php the_time('l, F jS, Y') ?>| by  <?php the_author(); ?> | FILED AS: <?php the_category(', ') ?></small>
				</div> 

				<div class="postmetadata"> 
					<!--Comments-->

                       <?php comments_popup_link(' 0', '1', '%'); ?>			
                   </div> 

                   <br class="space" /> 

				<div class="entry"> 
				<img src="<?php echo get_post_meta($post->ID, 'thumbnail',true) ?>" alt="Post Image"  class="alignleft postthumb" /> 
					<p><?php the_excerpt(); ?></p> 
                       <p>	<a href="<?php echo get_permalink(); ?>"  class="more-link"> Read More...</a></p>
				</div> 

		</div> 
<?php endwhile;?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
</div>
<?php else: ?>

<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>

<?php endif; ?>


</div> 





</div>



<br style="clear: both;" /> 
<?php get_footer(); ?>

replace ur index.php with this code

Edited by sash_oo7

  • Author

Awesome - thanks!

 

Definitely showing latest 2 posts now, and I've removed the link to get to more (will use an archive page for this), but it's cut out the background box again?

 

post-29389-0-02918100-1320263094_thumb.png

 

Is there a way to remove the sidebar on the left and use a Twitter feed code as well?

 

<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
 version: 2,
 type: 'profile',
 rpp: 4,
 interval: 30000,
 width: 250,
 height: 300,
 theme: {
   shell: {
     background: '#333333',
     color: '#6399c6'
   },
   tweets: {
     background: '#424141',
     color: '#6399c6',
     links: '#db094f'
   }
 },
 features: {
   scrollbar: false,
   loop: false,
   live: false,
   behavior: 'all'
 }
}).render().setUser('sianwelby').start();
</script>

 

Cheers!

  • Author

I've also been using the 'More' tag with some other designs - is there a way to hardcode this into the WP loop to say and this after 2 paragraphs?

  • Author

u want to increase the excerpt limit?

 

If possible - just to 2 paragraphs - how do I extend that?

 

I assume I can also use the template for static pages now, i.e. About, Contact etc - and the loop will be replaced by the content?

 

The other question was about that sidebar widget.

If possible - just to 2 paragraphs - how do I extend that?

 

I assume I can also use the template for static pages now, i.e. About, Contact etc - and the loop will be replaced by the content?

 

The other question was about that sidebar widget.

 

 

use plugin for twitter feed

 

and for excerpt try this plugin

  • 3 weeks later...

#content
{                        margin-left: -93px; height: 516px;/*remove height*/
background: url('images/pngs/bg-646x1.png') repeat-y top left;
float: left;
text-align: left;                width: 646px;
}

 

#content
{                        margin-left: -93px; 
background: url('images/pngs/bg-646x1.png') repeat-y top left;
float: left;
text-align: left;                width: 646px;
}

  • 2 weeks later...
  • 2 weeks later...
  • Author

Thanks to Sash the site is coming along quite nicely now - see here: http://ppdesign.host22.com/

 

A few queries tho if any of you guys have the solutions ;)

 


  •  
  • On the static pages I've created, the page doesn't seem to be displaying the correct background image, it's leaving it blank currently.
     
  • Clicking 'Read More' on the Blog page for the Posts takes me to the Post page, but doesn't show the full post - I've no idea why!
     
  • I'd like to remove the sidebar on the left and replace it with the Twitter Profile Widget here - http://twitter.com/about/resources/widgets/widget_profile - I assume it's a case of swapping out the code in the sidebar.php and then tidying up the styling?
     

 

Any help would be greatly appreciate - Sash has been a huge help so far!

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.