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 »

Add code in single.php


  #1  
Old Mar 9, 2012, 04:59 AM
Lucker
 
17 posts · Apr 2009
Add code in single.php

I'd like to replace some code in single.php file, but found that the theme has no one.

In instruction from this page http://www.makeuseof.com/tag/add-ric...ordpress-blog/ I understang that I should change
Code:
<h2 class="post_title"><?php the_title(); ?><h2>
to this
Code:
<h2 class="post_title entry-title"><?php the_title(); ?><h2>
and add this
Code:
<h2 class="updated"><?php the_date();?></h2>
and this
Code:
Author:<p class="author"><span><?php the_author(); ?></span></p>
Is it possible to reach this functionality with Atahualpa theme? Are the code above correct for the theme?
What the best way to implement the code into the theme?

Thanks a lot!
  #2  
Old Mar 9, 2012, 06:15 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you will need to edit the code in bfa_post_parts.php in the 'function bfa_post_headline...' section where the post title HTML is built.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Mar 9, 2012, 11:17 AM
Lucker
 
17 posts · Apr 2009
Juggledad, thank you for pointing me to the source file. Unlikely I absolutely dummy in php and have no idea how to change the code in the file in order to achieve desirable functionality...

Could you please provide instructions how to add class to h1/2?

Thank you in advance
  #4  
Old Mar 10, 2012, 04:20 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
to dig into the code to figure out what exactly would be needed will take a bit of time. If you can not do it yourself you need to
- spend the time and energy to learn how to do it
- find a friend who can do it
- hire someone to do it for you.
- find a different solution (maybe a different plugin)
- or re think your needs

maybe the person who did the writeup would be willing to do the work for you...
__________________
"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
How to put code in loop with instruction for single.php? annsworld Center area post/pages 5 Dec 1, 2012 09:52 PM
Header & Footer Code for Single Page? GRF Header configuration & styling 2 Sep 15, 2011 09:11 PM
Adding Adsense code below Title in Single Posts mkellam Center area post/pages 3 May 9, 2011 04:01 PM
[SOLVED] Add Adsense section targeting code to single.php Stefan72 Center area post/pages 13 Nov 24, 2010 05:58 AM
How to add php code to a 'single' page JakeThePeg Center area post/pages 8 Mar 21, 2010 01:21 AM


All times are GMT -6. The time now is 03:53 AM.


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