Skip to content

Instantly share code, notes, and snippets.

@rali14
rali14 / job-application-url.php
Last active October 19, 2016 14:51
Redirect automatically to link WP Job Manager
<?php
$link = 'Location: '+ esc_url( $apply->url ); ?>
<p><?php _e( 'To apply for this job please visit the following URL:', 'wp-job-manager' ); ?> <a href="<?php echo esc_url( $apply->url ); ?>" target="_blank" rel="nofollow"><?php echo esc_html( $apply->url ); ?> &rarr;</a></p>
<?php
header($link);
exit;
?>
@rali14
rali14 / single-job_listing-gallery.php
Created September 27, 2016 18:58
[listify] Order gallery page same as gallery widget
@rali14
rali14 / content-single-job_listing-gallery-overview.php
Created September 14, 2016 17:04
content-single-job_listing-gallery-overview.php
@rali14
rali14 / style.css
Created September 12, 2016 16:43
match header on listings archive page to rest of site
@media screen and (min-width: 768px) {
body.fixed-map .container {
padding-left: 15px;
padding-right: 15px;
}
}
body.fixed-map .container {
padding-left: 25px;
padding-right: 25px;
@rali14
rali14 / class-wp-job-manager-taxonomies.php
Created August 25, 2016 20:48
French Translation Bug Fix
<?php
/**
* Handles taxonomies in admin
*
* @since 1.4.0
*
* @package Listify
* @category Admin
*/
class Listify_WP_Job_Manager_Taxonomies {
<?php
/**
* Listable Child functions and definitions
*
* Bellow you will find several ways to tackle the enqueue of static resources/files
* It depends on the amount of customization you want to do
* If you either wish to simply overwrite/add some CSS rules or JS code
* Or if you want to replace certain files from the parent with your own (like style.css or main.js)
*
* @package ListableChild
@rali14
rali14 / style.css
Last active May 4, 2022 14:07
Custom Icon for Custom Field Widget
#jmfe_widget-2 > h1:before { /* Replace the ID (jmfe_widget-2) with the widget ID from Step 1 */
content: '\f35b'; /* replace the content here with the icon you would like to use.*/
display: inline-block;
font-family: Ionicons;
speak: none;
font-style: normal;
font-weight: 400;
font-variant: normal;
text-transform: none;
text-rendering: auto;
@rali14
rali14 / footer.php
Last active March 2, 2017 16:44
Display footer on listings archive pages (listify)
@rali14
rali14 / functions.php
Last active January 11, 2017 05:28
Add Information into listings footer on the listing grid on Listify theme.
function add_information_to_listing_footer() {
global $post;
echo '<h2>hello!</h2>';
}
add_action( 'listify_content_job_listing_footer', 'add_information_to_listing_footer', 25 );
@rali14
rali14 / style.css
Created May 18, 2016 03:12
Different Background on Homepage Only (listify)
/* More options available via background CSS properties: http://www.w3schools.com/css/css_background.asp */
body.home.custom-background {
background-image: url('http://yousite.com/homepagebackground.jpg');
background-repeat: repeat;
background-position: top left;
background-attachment: scroll;
}