José M. Villar
Forum Replies Created
-
Forum: Plugins
In reply to: [AgentPress Listings] Two questions about customizing this plugin…Hope I am not too late with a possible solution to this problem:
add_filter( 'gettext', 'agentpress_change_view_listings_text', 20, 3 ); /** * Change view listings text. * * @link http://codex.ww.wp.xz.cn/Plugin_API/Filter_Reference/gettext * @see switch http://php.net/manual/en/control-structures.switch.php */ function agentpress_change_view_listings_text( $translated_text, $text, $domain ) { if ( ( 'agentpress-listings' == $domain ) || ( 'agentpress' == $domain ) ) { switch ( $translated_text ) { case 'View Listing' : $translated_text = __( 'Modified Text', 'agentpress-listings' ); break; } } return $translated_text; }Forum: Plugins
In reply to: [Genesis Simple Share] Title before iconsSeems this has been adressed already as per Gary Jones
add_action( 'genesis_entry', 'prefix_entry' ); /** * Adds the Genesis Share icons after the entry but within the entry content container. * * @since 1.0.0 * * @return null Return early for non-single posts */ function prefix_entry() { if ( ! is_single() || ! function_exists( 'genesis_share_icon_output' ) ) { return; } global $Genesis_Simple_Share; echo '<div class="share-box"><h3 class="share-headline">' . __( 'If you liked this article, tell someone about it', 'yourtextdomain' ) . '</h3>'; genesis_share_icon_output( 'after-entry', $Genesis_Simple_Share->icons ); echo '</div>'; }This works wonderfully, except that my needs are that the prepended text to be shown to the left of the share buttons, and with the code above it is shown above.
Hope this helpsForum: Plugins
In reply to: [Interactive Content – H5P] Addressing individual elements in cssThanks @icc0rz, will give it a try
Forum: Themes and Templates
In reply to: [Hueman] Analytics Tracking Code on Theme OptionsSorry for my noobiness, but should I include the <script> tags too ?
EDIT: just found it in another question in this same forum. BTW, the answer was, YES, INCLUDE THOSE <script> tags. SORRY
Forum: Plugins
In reply to: [Secure Invites] Admin settings not appearingYou have to go to “tools”,”invites”,”settings”on top right, and there select “use custom settings”
Forum: Themes and Templates
In reply to: [Hueman] Different post-thumbnail sizes in homepageNope, none.
My first suggestion would be to search in the plugins forums/FAQ, maybe it is a known issue and it has already been answered.Forum: Themes and Templates
In reply to: [Hueman] Different post-thumbnail sizes in homepageNo, you need to regenerate thumbnails by pressing “regenerate all thumbnails” button under “tools” “regerate thumbnails”
Forum: Themes and Templates
In reply to: [Hueman] Entry excerpt stylingCorrect (once more) force-refresh solved it
Forum: Themes and Templates
In reply to: [Hueman] [Request] Support for Infinite ScrollSorry to chime in, but maybe switching 2 entries row to one entry solves this matter ?
I know the theme originally has 2 entries, but…Forum: Themes and Templates
In reply to: [Hueman] Different post-thumbnail sizes in homepageSuperb !
In my case, this can be marked as solved.
Forum: Themes and Templates
In reply to: [Hueman] Display Employee BiographiesUse index.php and/or archive.php as guidelines. And the WP codex, of course.
Forum: Themes and Templates
In reply to: [Hueman] Display Employee BiographiesYes, create a CPT named whatever you want (“bios”) and use it to enter each employees bios. Then insert a page with a custom loop calling that particular CPT, arrange in grid layout with CSS.
EDIT: if creating CPT is too much of a hassle, then enter each bio as posts, each one with same custom field. Then run a custom loop querying that particular custom field.
Forum: Themes and Templates
In reply to: [Hueman] Set some stuff in spanishThanks for your prompt response Judith.
In case I wasn’t clear enough my problem resides in the CHILD THEME language files and not the parent one.
That is the reason for the code beforementioned. And which was obtained from the WP codex.
I finally managed to have my site translated, but by insalling your files in the PARENT theme.
I am afraid I do not know the culprit which is causing the child theme to ignore language files.
Regards,
Forum: Themes and Templates
In reply to: [Hueman] Set some stuff in spanishHi Judith,
I setup a “languages” folder under hueman child theme with your two files and added the following code to my child theme functions.php
<?php /** * Setup My Child Theme's textdomain. * * Declare textdomain for this child theme. * Translations can be filed in the /languages/ directory. */ function my_child_theme_setup() { load_child_theme_textdomain( 'my-child-theme', get_stylesheet_directory() . '/languages' ); } add_action( 'after_setup_theme', 'my_child_theme_setup' ); ?>But unfortunately many text strings do not get translated, such as “previous” and “next” in post navigation.
Any hints will be greatly appreciated
Forum: Plugins
In reply to: [LeagueManager] Widget date not showingYou should follow php guidelines for date
http://php.net/manual/en/function.date.php