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 »

Add Social Media Links instead of RSS and remove tags from Main Page


  #1  
Old Mar 28, 2013, 11:20 AM
munchy_cool
 
14 posts · Mar 2013
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.
  #2  
Old Mar 28, 2013, 11:40 AM
munchy_cool
 
14 posts · Mar 2013
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>' ); ?>
  #3  
Old Mar 28, 2013, 11:59 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Add a dynamic sidebar(widget area) to header.php and add a plugin that will do what you want
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #4  
Old Mar 28, 2013, 12:04 PM
munchy_cool
 
14 posts · Mar 2013
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
  #5  
Old Mar 28, 2013, 05:14 PM
jerryc
 
367 posts · Oct 2012
Florida
Quote:
Originally Posted by munchy_cool
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 */ 
  #6  
Old Mar 28, 2013, 06:37 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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>
        -->
__________________
"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 28, 2013 at 07:10 PM.
  #7  
Old Mar 28, 2013, 07:47 PM
jerryc
 
367 posts · Oct 2012
Florida
Quote:
Originally Posted by juggledad
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.
  #8  
Old Mar 29, 2013, 07:32 AM
munchy_cool
 
14 posts · Mar 2013
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.

Last edited by juggledad; Mar 29, 2013 at 08:04 AM.
  #9  
Old Jul 5, 2014, 05:02 PM
hardworker1970
 
17 posts · Jul 2014
usa
Quote:
Originally Posted by munchy_cool
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?
  #10  
Old Jul 5, 2014, 06:36 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Please don't double post.
__________________
"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
[SOLVED] How to Put Social Media Icons in Page Menu CrumbsMaster Page & Category Menu Bars 2 Dec 28, 2012 04:37 PM
Social Media Icons in Header sleenie Header configuration & styling 15 May 25, 2012 09:27 PM
Positioning of Social Media tags nick51 Post-Kicker, -Byline & -Footer 1 Jun 8, 2011 03:13 PM
[SOLVED] Page Menu with Social Media Icons Tammy Page & Category Menu Bars 4 May 4, 2011 03:31 PM


All times are GMT -6. The time now is 04:47 PM.


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