• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

wordpress is_front_page not working

Why isn't this working?

Code:
<?php if (is_front_page()) { 'code goes here'; 

} else {

'code goes here';

}

?>
I am trying to get the blog roll to appear on the home page, but amazon banner appear everywhere else.

When I put the bookmark code in where it goes, the code crashes.

Code:
<?php wp_list_bookmarks('title_li=&categorize=0'); ?>

error is

Parse error: syntax error, unexpected T_STRING in /path removed/wp-content/themes/librio/sidebar.php on line 51
 
Last edited:
Why isn't this working?

Code:
<?php if (is_front_page()) { 'code goes here'; 

} else {

'code goes here';

}

?>
I am trying to get the blog roll to appear on the home page, but amazon banner appear everywhere else.

When I put the bookmark code in where it goes, the code crashes.

Code:
<?php wp_list_bookmarks('title_li=&categorize=0'); ?>

error is

Parse error: syntax error, unexpected T_STRING in /path removed/wp-content/themes/librio/sidebar.php on line 51

i think you're having problems with the theme... are you using any advertisement services on your website?
 
i think you're having problems with the theme... are you using any advertisement services on your website?

I have an adsense banner in the sidebar.

At the top of the sidebar there is a

Code:
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>

At the bottom of the sidebar is a

HTML:
<?php endif; ?>

The code I am trying to add is inside the dynamic_sidebar if code.

Will an if inside of an if cause problems?

EDIT

I removed the if dynamic sidebar code, and the closing if statement and nothing changed.
 
Last edited:
Back
Top