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)
-   -   Add Social Media Links instead of RSS and remove tags from Main Page (http://forum.bytesforall.com/showthread.php?t=20013)

munchy_cool Mar 28, 2013 11:20 AM

Add Social Media Links instead of RSS and remove tags from Main Page
 
Ned help in adding links to Social Media instead of the RSS feed in the header, looked through a lot of threads with similar requests but none of them had the code (yes I am wordpress n00b).

Also need to remove tags from main page , did it but had to reset all the options due to an issue and now I can't find how I did it.

Thanks.

munchy_cool Mar 28, 2013 11:40 AM

found the solution to remove tags from main page.
Montezuma Options - > Sub Templates -> Post Format

remove below line
<?php the_tags( '<p class="post-tags">', '', '</p>' ); ?>

juggledad Mar 28, 2013 11:59 AM

Add a dynamic sidebar(widget area) to header.php and add a plugin that will do what you want

munchy_cool Mar 28, 2013 12:04 PM

is there any option in Montezuma Options to add a dynamic sidebar to the header.php?

also how do I comment out the code instead of deleting it in postformat.php?

sorry for the foolish questions but I am worn out after trying to figure it out for the last 5 hours :(

jerryc Mar 28, 2013 05:14 PM

Quote:

Originally Posted by munchy_cool (Post 98718)
is there any option in Montezuma Options to add a dynamic sidebar to the header.php?

Sidebars can go in any template or subtemplate. See this post.

Quote:

also how do I comment out the code instead of deleting it in postformat.php?
There are two basic ways to comment out code in PHP.

PHP Code:

// single line comment, comments out everything to its right 


/* multi line comments
   can go on and on until 
   the closing */ 


juggledad Mar 28, 2013 06:37 PM

Jerry, while your answer is correct in physical PHP template, it is not correct in a Montezuma virtual template.

If you want to comment something out of the virtual templates surround it with '<!--' and '-->' for example
HTML Code:

<?php get_header(); ?>
would become
HTML Code:

<!--<?php get_header(); ?>-->
this works for the PHP or HTML so to comment out this code
HTML Code:

        <div id="content" class="cf col8">
               
                <?php bfa_content_nav( 'multinav1' ); ?>
               
                <?php bfa_loop( 'postformat' ); ?>
               
                <?php bfa_content_nav( 'multinav2' ); ?>
               
        </div>

you could do this
HTML Code:

<!--
        <div id="content" class="cf col8">

               
                <?php bfa_content_nav( 'multinav1' ); ?>
               
                <?php bfa_loop( 'postformat' ); ?>
               
                <?php bfa_content_nav( 'multinav2' ); ?>
               
        </div>
        -->


jerryc Mar 28, 2013 07:47 PM

Quote:

Originally Posted by juggledad (Post 98730)
Jerry, while your answer is correct in physical PHP template, it is not correct in a Montezuma virtual template.

You're absolutely right, Juggledad. PHP comments only work within PHP tags. If PHP is contained within an HTML document (even if the document has a PHP suffix), then HTML comment tags, as you showed, are required to comment out the code. Good catch.

munchy_cool Mar 29, 2013 07:32 AM

Thanks Jim and Juggledad
Jim,
I tried the commenting thing mentioned by you but it did not work. Juggledad's solution worked. Thanks again guys. I will start learning the dynamic header thing.

hardworker1970 Jul 5, 2014 05:02 PM

Quote:

Originally Posted by munchy_cool (Post 98715)
found the solution to remove tags from main page.
Montezuma Options - > Sub Templates -> Post Format

remove below line
<?php the_tags( '<p class="post-tags">', '', '</p>' ); ?>

I tried this and it didn't work, the tags are still there.
Anyone else knows how to remove the tags from the top of the montezuma theme?

juggledad Jul 5, 2014 06:36 PM

Please don't double post.


All times are GMT -6. The time now is 06:19 AM.

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