Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   Sub Heading Plug in with Montezuma Template (http://forum.bytesforall.com/showthread.php?t=19933)

hwiedermann.de Mar 19, 2013 07:11 AM

Sub Heading Plug in with Montezuma Template
 
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!

jerryc Mar 19, 2013 07:38 AM

This thread may give you what you need.

hwiedermann.de Mar 25, 2013 03:55 AM

1 Attachment(s)
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?

juggledad Mar 25, 2013 04:43 AM

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'


All times are GMT -6. The time now is 08:35 PM.

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