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 » Montezuma Theme »

Sub Heading Plug in with Montezuma Template


  #1  
Old Mar 19, 2013, 07:11 AM
hwiedermann.de
 
2 posts · Mar 2013
Hi there,

I have tried to implement this Plug in in my Blog with the Montezuma template. It will enable the feature to set an optional sub header for each site and/or article in Wordpress.
http://wordpress.org/extend/plugins/subheading/

But i'm not able to include the necessary PHP code in the template.

I also tried an other option via "built in" feature with Wordpress, but i also have to set an new function in the PHP code of every site or article template. It also don't work.

Can someone help me with easy words, how to implement this plug in in this template?


Many thanks for your help!

Last edited by hwiedermann.de; Mar 19, 2013 at 07:15 AM.
  #2  
Old Mar 19, 2013, 07:38 AM
jerryc
 
367 posts · Oct 2012
Florida
This thread may give you what you need.
  #3  
Old Mar 25, 2013, 03:55 AM
hwiedermann.de
 
2 posts · Mar 2013
hello,

thank you for your replay. But this instructions don't help me really.
I have attached an image to show, where i want to add my sub heading line.

If i understand the instructions from your post right, it wont help me to add the necessary code on this position?
Attached Thumbnails
Click image for larger version

Name:	Unbenannt.JPG
Views:	1240
Size:	97.0 KB
ID:	2288  
  #4  
Old Mar 25, 2013, 04:43 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
This is not too hard to do but involves a couple steps.
1) install the plugin 'exec-php' and activate it
2) go to mto->Sub Templates->postformat.php and change the the <h2> section from
HTML Code:
	<h2>
		<span class="post-format"></span>
		<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"><?php the_title(); ?></a>
        <?php bfa_comments_popup_link( '0', '1', '%' ); ?>
	</h2>
to
HTML Code:
	<h2>
		<span class="post-format"></span>
		<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"><?php the_title(); ?></a>
        <?php dynamic_sidebar( 'subheading' ); ?>
        <?php bfa_comments_popup_link( '0', '1', '%' ); ?>
	</h2>
3) go to mto->Main Templates->single.php and change the the <h1> section from
HTML Code:
			<h1>
				<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"><?php the_title(); ?></a>
				<?php bfa_comments_number(); ?>
			</h1>
to
HTML Code:
			<h1>
				<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"><?php the_title(); ?></a>
                <?php dynamic_sidebar( 'subheading' ); ?>
				<?php bfa_comments_number(); ?>
			</h1>
4) go to mto->Main Templates->page.php and change the the <h1> section from
HTML Code:
			<h1>
				<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"><?php the_title(); ?></a>
				<?php bfa_comments_number(); ?>
			</h1>
to
HTML Code:
			<h1>
				<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"><?php the_title(); ?></a>
                <?php dynamic_sidebar( 'subheading' ); ?>
				<?php bfa_comments_number(); ?>
			</h1>
5) go to Dashboard->Appearances->Widgets and you will see a new widget area called 'subheading', add a 'text' widget to this area
6) add the following to that text widget
HTML Code:
<?php if (function_exists('the_subheading')) { the_subheading('<p class="subheading">', '</p>'); } ?>
that should be it. If you want to change the styling of the subheading you can use something like
HTML Code:
.subheading {color: #00ffff;}
and put it at the end of the 'clearfix.css'
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Mar 25, 2013 at 01:16 PM.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Heading editing richard-hards Atahualpa 3 Wordpress theme 1 Aug 8, 2012 07:37 AM
Hi, new and need help with heading and picture..... droopal Installing & running WordPress 10 Apr 13, 2010 05:21 AM
Heading Styles - Help please GadgetJoe Center area post/pages 0 Feb 13, 2010 08:44 AM
Heading 1, 2, 3, ... cliffbird Header configuration & styling 1 Sep 19, 2009 08:36 AM
Column Heading Help ? Dj Mionis Sidebars & Widgets 1 Feb 13, 2009 06:48 AM


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


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