Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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


  #1  
Old Apr 21, 2012, 03:23 PM
DamienB
 
2 posts · Apr 2012
Lyon
Wrap a php command in the bfa_post_bodycopy

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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You could add it in index.php just befor the line
HTML Code:
<?php /* If there are any posts: */
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
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 01:44 PM.


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