janice171
Forum Replies Created
-
yeah i’ve altered that….i’ve actually integrated it with my page.php to make things easier.
I’m presuming the bit of code generating all the widget stuff is this bit:
<?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar() ) : ?>…but i don’t know where to find the bits of code that make up the ‘dynamic_sidebar’….if this is the correct snippet anyway?
Any ideas more than appreciatedalso…the entire block of html after the <div id=”sidebar”> is contained in UL tags and i want to take everything out of this so the ul tag can start below the category <h2> tag…any idea how i do that?
thanks for the response…
so presumably i would style the li tags with a class of .cat-item and also .current-cat?Forum: Fixing WordPress
In reply to: integrating in existing html page.hi, thanks for your reply.
i have renamed the file to a php file….the site is basically a static site but i would like to add some dynamic content.
the other threads that talk about this kind of integration all say to add
<?php require(‘http://www.mywebsite.com/wordpress/wp-blog-header.php’); ?>
to the top of whatever page you want to add the ‘loop’ to…which i’ve done, and everything looks well in the editor but not in the browser i just get the‘fatal error call to undefined function: have_posts()
etc…do you know what could be causing this? my index.php (with the news section where i’ve added the loop) is outside of the wordpress directory…does this matter?
cheers
Forum: Fixing WordPress
In reply to: integrating in existing html page.i’ve just got past this poit by making the path absolute, but now i get this messge:
Fatal error: Call to undefined function: have_posts() in /mywebpage/directory/subdirectory/index.php on line 365this is what is one line 365:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>…and also adding the php code has increased the size of the column and messed up the design…can this be sorted out anywhere?