Tagged: page template, post template, single.php, WP Job Manager
-
AuthorPosts
-
August 17, 2016 at 12:19 am #673432
Need some help! Trying to create careers & job board section on our website: http://www.onesourcebackground.com
We are currently using Job Manager plugin. It has limited functionality so I am seeing if the WP Job Manager plugin would be a better fit for us. It’s using the theme’s single.php file to put the single job listing. How do I edit this file? I am not a developer. The single job listing is showing the title “Blog” on the top of this page. UGH! See screenshot: http://goo.gl/54VtBTI’ve poured over the plugin developer’s documentation but I’m scared to death to try any of their recommendations https://wpjobmanager.com/document/single-job-listings. And since I don’t code, I wouldn’t know what to remove from this file. I should also point out that I have a child theme. So that gets confusing as to what files I move where and/or edit.
From my ftp site, below is my single.php file. What do I remove to override the title “Blog”. Is there an easier way to modify these templates? It would be awesome to be able to assign it to a post or page I’ve already created in the Admin dashboard. I hate messing with the native files.
<?php if ( !defined('ABSPATH') ){ die(); } global $avia_config; /* * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory. */ get_header(); $title = __('Blog - Latest News', 'avia_framework'); //default blog title $t_link = home_url('/'); $t_sub = ""; if(avia_get_option('frontpage') && $new = avia_get_option('blogpage')) { $title = get_the_title($new); //if the blog is attached to a page use this title $t_link = get_permalink($new); $t_sub = avia_post_meta($new, 'subtitle'); } if( get_post_meta(get_the_ID(), 'header', true) != 'no') echo avia_title(array('heading'=>'strong', 'title' => $title, 'link' => $t_link, 'subtitle' => $t_sub)); do_action( 'ava_after_main_title' ); ?> <div class='container_wrap container_wrap_first main_color <?php avia_layout_class( 'main' ); ?>'> <div class='container template-blog template-single-blog '> <main class='content units <?php avia_layout_class( 'content' ); ?> <?php echo avia_blog_class_string(); ?>' <?php avia_markup_helper(array('context' => 'content','post_type'=>'post'));?>> <?php /* Run the loop to output the posts. * If you want to overload this in a child theme then include a file * called loop-index.php and that will be used instead. * */ get_template_part( 'includes/loop', 'index' ); //show related posts based on tags if there are any get_template_part( 'includes/related-posts'); //wordpress function that loads the comments template "comments.php" comments_template(); ?> <!--end content--> </main> <?php $avia_config['currently_viewing'] = "blog"; //get the sidebar get_sidebar(); ?> </div><!--end container--> </div><!-- close default .container_wrap element --> <?php get_footer(); ?>
- This topic was modified 8 years, 3 months ago by onesource_marketing.
August 18, 2016 at 10:30 pm #674380Still need help! Per the plugin author’s documentation. I created a copy of the single.php file and renamed it single-job_listing.php. I tried removing `get_header();
$title = __(‘Blog – Latest News’, ‘avia_framework’); //default blog title
$t_link = home_url(‘/’);
$t_sub = “”;`
but this just changed the title from “Blog” to “Blog – Latest News”. Not sure why this would add “Latest News” to “Blog” – strange. So I reverted back to the original code from single.php file.Regardless, I don’t want my job listings to have any reference of “Blog” at the top of the page. Need this removed.
It would be great if I could add a custom sidebar too to this template. Much like a regular blog post or page where I adjust what is in there via widgets but not sure if this is possible. Please help! Here’s a link to a single job posting with the original php code: https://www.onesourcebackground.com/job/operations-specialist/
August 19, 2016 at 10:52 pm #674884Nevermind. It took a lot of digging but I found someone else using Enfold who had a similar inquiry.
-
AuthorPosts
- The topic ‘WP Job Manager – Need help editing single.php’ is closed to new replies.