• ok, i’m a word press newbie with good html/css and almost no php experience…

    i am using a child theme successfully to modify style.css BUT

    because i am both an artist and an academic, i’m trying to have one page for a CV that presents my academic CV and a second page that presents my exhibition history. For clarity i would like to call one CV and the other exhibitions. philosophical questions about whether this is even a smart idea aside…

    naming a page exhibitions does not allow me to apply the resume style, so –

    I looked at the page.php file in the parent theme and saw a line that defined the pages that would load the resume.css – the pages are in an array: ‘RESUME’, ‘resume’, ‘CV’, ‘cv’

    i would love to just add ‘exhibition’,’EXHIBITION’ to this array, but I would like to do it through the child theme to not mess with the parent.

    I looked through the codex and the wpfolio documentation and have a suspicion that i understand, but can i use @import with a file in the child theme called page.php and use that to override the page.php in the parent? Should i be trying to do this through the functions.php file?

    i’m not invested in one method or another, in an ideal world i’d love if someone just said… oh, there’s a drop-down menu in word-press that lets you apply the resume style to any page.

    any thoughts would be welcomed.

    cheers,
    seth

Viewing 2 replies - 1 through 2 (of 2 total)
  • The easiest way to do this is to make a copy of page.php, put it in the child theme folder, and make your edits – all files in the child theme will override those in the parent theme. The only drawback is that you’ll have to watch check the updates to make sure you aren’t missing anything updates in that file.

    The other way is to make a filter – read more about those here.

    Good luck!

    Thread Starter onelonelypixel

    (@onelonelypixel)

    thanks!

    i got it to work, there was one extra step (comments on more efficient methods welcomed)

    i added page.php to the child theme folder, i added the acceptable names (for me ‘EXHIBITIONS’,’Exhibitions’,’exhibitions’ to the child theme version of the page.php file.

    when i did this it still wasn’t calling the cv-style from the parent theme, so i just copied the div.cv-style code from the resume to the child theme .css and it works just fine now (so far).

    cheers, s

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WPFolio – using adding additional page titles to resume/cv style’ is closed to new replies.