Adding new byline layout

General questions pertaining to how certain issues can be resolved
Forum rules
1. No offensive language and no mocking
2. Please do a thorough search before you post something. Trust us, there is a high probability that the question you are asking has been asked previously.
3. No soliciting. You cannot post here soliciting bids for people offer you quotes, or even offer money to people for some work. You will be moderated if you do so. If you are looking for help, please post your request on http://jobs.wordpress.net or http://codepoet.com
4. Please be reasonable. You are getting software and support. For free. Complicated requests from a general purpose theme are not welcome and some volunteers might lose patience with you.
5. Please do your due diligence. If you posted a query and we answered with a link, take the trouble to go through the link contents.
6. Please post with complete information. Requests for help MUST be accompanied with your URL, particularly if you are asking something like "Why am I seeing a blank space?"

Adding new byline layout

Postby mcfilmmakers » 23 Jun 2012, 13:45

As we all know, the custom folder contains five files for bylines: byline-page.php, byline-line.php, byline-tile.php, pullout.php and pullout-page.php

I want to create a new byline php file with my own custom layout for bylines. Namely, I want to have a byline appear before the post content and one appear after the post content, with each set of bylines containing different data. lets call this file byline-duo.php

Now, how can I make this file available to the suffusion options pages (Custom types -> layouts + Other Graphical Elements -> Post and Page Bylines)?

Thanks.
mcfilmmakers
 
Posts: 60
Joined: 28 May 2012, 12:25

Re: Adding new byline layout

Postby mcfilmmakers » 25 Jun 2012, 14:21

I am having problems getting my changes to apply on my child theme. The following code works on the parent theme but NOT on the child theme:

theme-options-custom-types.php
Code: Select all
            'options' => array(
               'none' => 'No bylines',
               'line-top' => 'Single line below post title',
               'line-bottom' => 'Single line below post',
               'left-pullout' => 'Pullout on the left',
               'right-pullout' => 'Pullout on the right',
new line ===>         'line-both' => 'Stuff',
            ),


The above adds an option to the Custom Types => Layouts drop down menu for the Byline display. Again, it works in the parent theme, but not if I move theme-options-custom-types.php to my child theme (with parent theme maintaining the unedited version).

I tried moving theme-options.php to my child theme and editing the get_temple_directory() lines to get_stylesheet_directory() but that didn't do the trick.

Any ideas why my child theme is still looking to the parent theme's files?
mcfilmmakers
 
Posts: 60
Joined: 28 May 2012, 12:25

Re: Adding new byline layout

Postby sayontan » 25 Jun 2012, 19:30

mcfilmmakers wrote:The following code works on the parent theme but NOT on the child theme:

This isn't supposed to work - options pages are not extensible via child themes.
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10159
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas

Re: Adding new byline layout

Postby mcfilmmakers » 26 Jun 2012, 18:39

Ah well then that answers the question!

Would a logical solution then be for me to build a plugin to work with the theme? If so, what should I hook into?
mcfilmmakers
 
Posts: 60
Joined: 28 May 2012, 12:25

Re: Adding new byline layout

Postby alxvallejo » 29 Nov 2012, 10:41

I'm guessing you should hook into either

Code: Select all
suffusion_after_begin_post
or
Code: Select all
suffusion_print_line_byline_top
or
Code: Select all
suffusion_print_line_byline


Not quite sure though, have you solved it?
alxvallejo
 
Posts: 28
Joined: 14 Nov 2011, 11:34


Return to Support Requests

Who is online

Users browsing this forum: Andi, Google [Bot] and 8 guests