Forum Replies Created
-
AuthorPosts
-
Theme Horse Support Team
Keymasterhi kurt,
Thanks for the bug report. We will fix it in new version. What you do now is just go to the theme folder -> template-parts -> content.php in line no 53 you will see this below code
if(get_the_excerpt() > get_the_content()){?>
replace it with
if(strlen(get_the_content()) > strlen(get_the_excerpt()) ){ ?>
Thank you!
Theme Horse Support Team
KeymasterHi Vicky,
If you have any issue while setup you theme then let us know.
Thank you!
July 24, 2017 at 10:08 am in reply to: Override parent theme function through the child theme #52325Theme Horse Support Team
KeymasterThat’s great and thanks for sharing your information with us.
Thank you!
July 24, 2017 at 9:55 am in reply to: Update from 1.1.8 to 3.0.9 version and remove navigation menu link #52324Theme Horse Support Team
KeymasterYou welcome varioijo
Thank you!
Theme Horse Support Team
KeymasterHi Vicky,
This feature is not available in our theme. Either you show slider in all pages or in home page only. To add image slider on only two pages it needs code customization and its a completely new features to be added in the theme.
Thank you!
July 21, 2017 at 5:39 am in reply to: Update from 1.1.8 to 3.0.9 version and remove navigation menu link #52290Theme Horse Support Team
KeymasterHi varioijo,
If you have made code customization in the theme then while updating to new version all your customized code will be lost. So we always recommended you not to change the code. If you need to change it then you need to create a child theme before making any changes on it.
If you have not made any code customization but only changed the settings from your theme options, widgets and customizer then your nothing will be lost.
Before making an update first of all make a backup of your site and database and then only update your theme.
We are changing the menu style appearance. Soon latest version will be available with navigation menu redirect to homepage fixed.
Thank you!
Theme Horse Support Team
KeymasterHi scott6,
Header image is working fine from our end and we have checked it just now also. There is no any issue with it. Could you please provide your site url and also with screenshot what the exact issue is going on. We don’t have any new update now and we updated it on january 2 and since its a 6 months ago.
Thank you!
Theme Horse Support Team
KeymasterHi stanlin1999,
I have readded the action hook code which must be added in the child theme functions.php file.
<?php // Unhook default Thematic functions function unhook_thematic_functions() { // Don't forget the position number if the original function has one remove_action('ambition_header', 'ambition_headercontent_details', 10); } add_action('init','unhook_thematic_functions'); add_action( 'ambition_header', 'ambition_child_headercontent_details', 10 ); function ambition_child_headercontent_details(){global $ambition_settings; $header_image = get_header_image(); if (!empty($header_image)):?> <a href="<?php echo esc_url(home_url('/'));?>"><img src="<?php echo esc_url($header_image);?>" class="header-image" width="<?php echo get_custom_header()->width;?>" height="<?php echo get_custom_header()->height;?>" alt="<?php echo esc_attr(get_bloginfo('name', 'display'));?>"> </a> <?php endif;?> <div class="hgroup-wrap"> <div class="container clearfix"> <?php $ambition_settings = wp_parse_args( get_option( 'ambition_theme_settings', array() ), ambition_get_option_defaults() ); $header_display = $ambition_settings['header_settings']; $header_logo = $ambition_settings['img-upload-header-logo']; if ($header_display != 'disable_both' && $header_display == 'header_text') { ?> <section id="site-logo" class="clearfix"> <?php if(is_single() || (!is_page_template('page-templates/page-template-business.php' )) && !is_home()){ ?> <h2 id="site-title"> <a href="<?php echo esc_url(home_url('/'));?>" title="<?php echo esc_attr(get_bloginfo('name', 'display'));?>" rel="home"> <?php bloginfo('name');?> </a> </h2><!-- #site-title --> <?php } else { ?> <h1 id="site-title"> <a href="<?php echo esc_url(home_url('/'));?>" title="<?php echo esc_attr(get_bloginfo('name', 'display'));?>" rel="home"> <?php bloginfo('name');?> </a> </h1><!-- #site-title --> <?php } $site_description = get_bloginfo( 'description', 'display' ); if($site_description){?> <h2 id="site-description"> <?php bloginfo('description');?> </h2> <?php } ?> </section><!-- #site-logo --> <?php } elseif ($header_display != 'disable_both' && $header_display == 'header_logo') { ?> <section id="site-logo" class="clearfix"> <?php if(is_single() || (!is_page_template('page-templates/page-template-business.php' )) && !is_home()){ ?> <h2 id="site-title"> <a href="<?php echo esc_url(home_url('/'));?>" title="<?php echo esc_attr(get_bloginfo('name', 'display'));?>" rel="home"> <img src="<?php echo $header_logo;?>" alt="<?php echo esc_attr(get_bloginfo('name', 'display'));?>"></a> </h2> <?php }else{ ?> <h1 id="site-title"> <a href="<?php echo esc_url(home_url('/'));?>" title="<?php echo esc_attr(get_bloginfo('name', 'display'));?>" rel="home"> <img src="<?php echo $header_logo;?>" alt="<?php echo esc_attr(get_bloginfo('name', 'display'));?>"></a> </h1> <?php } ?> </section><!-- #site-logo --> <?php }?> <button class="menu-toggle"><?php _e('Responsive Menu', 'ambition' ); ?></button> <?php if (has_nav_menu('primary')) {// if there is nav menu then content displayed from nav menu else from pages ?> <section class="hgroup-right"> <?php $args = array( 'theme_location' => 'primary', 'container' => '', 'items_wrap' => '<ul class="nav-menu">%3$s</ul>', ); ?> <nav id="site-navigation" class="main-navigation clearfix" role="navigation"> <?php wp_nav_menu($args);//extract the content from apperance-> nav menu ?> </nav><!-- #access --> <?php } else {// extract the content from page menu only ?> <section class="hgroup-right"> <nav id="site-navigation" class="main-navigation clearfix" role="navigation"> <?php wp_page_menu(array('menu_class' => 'nav-menu')); ?> </nav><!-- #access --> <?php } $search_form = $ambition_settings['search_header_settings']; if (1 != $search_form) { ?> <div class="search-toggle"></div><!-- .search-toggle --> <div id="search-box" class="hide"> <?php get_search_form();?> <span class="arrow"></span> </div><!-- #search-box --> <?php } ?> </section><!-- .hgroup-right --> </div><!-- .container --> </div><!-- .hgroup-wrap --> <?php global $disable_slider; global $ambition_settings; if (is_front_page()) { $disable_slider = $ambition_settings['disable_slider']; if (empty($disable_slider)) { if (function_exists('ambition_pass_slider_effect_cycle_parameters')) { ambition_pass_slider_effect_cycle_parameters(); } if (function_exists('ambition_featured_sliders')) { ambition_featured_sliders(); } } } else { if (('' != ambition_header_title()) || function_exists('bcn_display_list')) { $sitetitle_img_setting = $ambition_settings['site_title_setting']; $sitetitle_image = $ambition_settings['img-upload-site-title']; ?> <div class="page-title-wrap" <?php if ( $sitetitle_img_setting != '1' && $sitetitle_image != '' ){ ?> style="background-image:url('<?php echo esc_url($sitetitle_image);?>');" <?php } ?> > <div class="container clearfix"> <?php if(is_home()){?> <h2 class="page-title"><?php echo ambition_header_title();?></h2><!-- .page-title --> <?php } else { ?> <h1 class="page-title"><?php echo ambition_header_title();?></h1><!-- .page-title --> <?php } if (function_exists('ambition_breadcrumb')) { ambition_breadcrumb(); } ?> </div><!-- .container --> </div><!-- .page-title-wrap --> <?php } } } ?>
This will overwrite the parent header-extension.php file. You can customize in functions.php file as per your needs.
I am not sure what this code is for or is it from plugins. If you have added it unknownly then it will give Uncaught Error:Call to undefined function the_field()
which is not a known function.<div> <img id="single-program-banner" src="<?php the_field('banner'); ?>" alt="" /> </div>
Thank you!
July 20, 2017 at 10:51 am in reply to: Override parent theme function through the child theme #52274Theme Horse Support Team
KeymasterHi stanlin1999,
Creating the same structure in the child theme will not over ride the parent theme. First of all you need to unhook the function and then customize the code. We will post a simple example how to unhook to functions:-
Create a two files styles.css and functions.phpUnder style.css add this following code.
/* Theme Name: Ambition Child Theme Theme URI: https://www.themehorse.com/themes/ambition Author: Theme Horse Author URI: https://www.themehorse.com Text Domain: ambition Template: ambition */ @import url("../ambition/style.css");
Under functions.php file
// Unhook default Thematic functions function unhook_thematic_functions() { // Don't forget the position number if the original function has one add_action('ambition_header', 'ambition_headercontent_details', 10); } add_action('init','unhook_thematic_functions'); add_action( 'ambition_headercontent_details', 'ambition_child_headercontent_details', 10 ); funtion ambition_child_headercontent_details(){ // your stuff }
Thank you!
Theme Horse Support Team
KeymasterHi Eileen,
Could you please provide your site url? If you are using image slider then you have to do the following settings to work image slider.
Go to dashboard -> appearance -> customize -> ambition theme options -> featured content settings and select image slider from slider type.
Also first try to fill all the fields in image slider.Thank you!
Theme Horse Support Team
KeymasterHi Caio Q,
You can download the footer.php file from here Unzip the ambition zip folder then you will be able to find footer.php file.
Thank you!
Theme Horse Support Team
KeymasterHi Richard,
Go to Appearance -> Theme Options/ customize -> Design Options Tab -> Custom CSS paste the following CSS code and Click on save all changes button
.widget_recent_work .one-fourth { width: 47.02%; } .widget_recent_work .call-to-action { display: none; }
The new css is to disable the green readmore button displayed just below the Our Directives.
Thank you!Theme Horse Support Team
KeymasterHi Richard,
To extend the height of the text to display all the content you have to add the content in excerpt field. To display excerpt field/panel in page editor, click on screen options at the top of the specific page and check the excerpt box where you can see the excerpt box at the bottom of the page there you can add the content which will display on the three pages across the homepage.
To show only two article in recent widget just set the two pages and leave all the field blank and paste the below custom css to show the two article fit across the page.
.widget_recent_work .one-fourth { width: 47.02%; }
If you are having trouble please let us know your exact page link so that we can provide you the custom css.
Thank you!
Theme Horse Support Team
KeymasterHI Tamara,
Please use the column format as below which is the build in column format of this theme. This column will work perfectly.
<div class="column clearfix"> <div class="one-fourth"> Column 1 content goes here. </div> <div class="one-fourth"> Column 2 content goes here. </div> <div class="one-fourth"> Column 3 content goes here. </div> <div class="one-fourth"> Column 4 content goes here. </div> </div>
Thank you!
Theme Horse Support Team
KeymasterHi Eileen,
You can add Custom CSS plugins. Our theme custom css doesnot support font family but only support other other css codes.
So add your class in you plugin custom css section
body { font-family: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif; }
Thank you!
-
AuthorPosts