Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

Wrap a php command in the bfa_post_bodycopy


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Apr 21, 2012, 03:23 PM
DamienB
 
2 posts · Apr 2012
Lyon
I want to insert a submenu in the center area post/pages. I think that I have to wrap the following code ...

Code:
<ul class="clearfix">
    <?php wp_list_pages( array('title_li'=>'','include'=>get_post_top_ancestor_id()) ); ?>
    <?php wp_list_pages( array('title_li'=>'','depth'=>1,'child_of'=>get_post_top_ancestor_id()) ); ?>
</ul>
in the php command line

Code:
<?php bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>'); ?>
but how ?

Thank you for your help,

DamienB
  #2  
Old Apr 22, 2012, 05:45 AM
juggledad's Avatar
juggledad
 
21,938 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
You could add it in index.php just befor the line
HTML Code:
<?php /* If there are any posts: */
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #3  
Old Apr 23, 2012, 03:49 AM
DamienB
 
2 posts · Apr 2012
Lyon
Thank you for your quick answer. The result is not exactly what I want to do because the submenu is alone as a separate element :

HTML Code:
<td id="middle">
/** Here is the submenu**/
<ul>
<li class="page_item page-item-30 current_page_item">
<li class="page_item page-item-11">
<li class="page_item page-item-86">
<li class="page_item page-item-690">
</ul>
/**End of the submenu**/
<div id="post-30" class="post-30 page type-page status-publish hentry post odd">
<div class="post-bodycopy clearfix">
<div id="fond_citation">            <Beginning of the post
<div class="margin_190">    
<p style="font-size: 1px;">
</div>
</div>
</td>
Is it possible to get the <ul>..</ul> section just before the beginning of the post. For example, is it possible to insert a <?php include() command ?>.

Thank you for your indulgence I am a newbe and my engligh is not so good. Tnak's for your advice

To have a look ... www.sunergos.fr
Damien

Last edited by DamienB; Apr 23, 2012 at 03:50 AM. Reason: adding the website adress
  #4  
Old Apr 23, 2012, 04:31 AM
juggledad's Avatar
juggledad
 
21,938 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
Now I'm not suer wuat you want.
if you want the submenu as part of a post - you can just add it to the post
if you want the menu as part of every post - you could move the code in index.php down into 'The LOOP' before or after the line
HTML Code:
		<?php bfa_post_kicker('<div class="post-kicker">','</div>'); ?>
if you want the menu at the top of the center area, leave it where it is.
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Page-center command not working theadventurebite Page & Category Menu Bars 6 May 3, 2012 12:54 PM
Menu Problems- Page-center command theadventurebite Page & Category Menu Bars 3 Jan 14, 2012 07:54 PM
adding javascript with <body> onLoad command bcnuggs Center area post/pages 1 Aug 16, 2010 07:22 AM
[SOLVED] Accidental key command has site/theme HUGE 5thbeatle Forum How-To 2 Jun 30, 2010 04:53 PM
Google site: command showing incorrect slug zzsimonb Atahualpa 3 Wordpress theme 0 Dec 10, 2009 09:34 AM


All times are GMT -6. The time now is 09:51 AM.


Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.