Search Results for 'php'

Home Forums Search Search Results for 'php'

Viewing 15 results - 1,936 through 1,950 (of 1,993 total)
  • Author
    Search Results
  • #3543
    Sonal S SinhaSonal S Sinha
    Keymaster
    • Topics: 10
    • Replies: 6994
    • Total: 7004
    Member since: June 12, 2013

    Check the following file via FTP:

    wp-content/themes/gymmaster/inc/custom-functions.php
    Check line 720
    This is the exact line:

    $return_string .= ‘

    Our Courses

    Change Our Courses to Our Services in this case.

    Regards,
    Shri

    #3503
    Sonal S SinhaSonal S Sinha
    Keymaster
    • Topics: 10
    • Replies: 6994
    • Total: 7004
    Member since: June 12, 2013

    Hi,

    Sorry for this. This is appearing from custom-functions.php in inc folder of the theme.

    I know it is difficult for you to change it since it appears via functions file inside theme folder.

    If you want us to do it send us only FTP details via email: [email protected]

    We will do this for you.

    In case you are comfortable doing it yourself we will send exact instructions on how to do this.

    let us know.

    Regards,
    Shri

    #3468
    Sonal S SinhaSonal S Sinha
    Keymaster
    • Topics: 10
    • Replies: 6994
    • Total: 7004
    Member since: June 12, 2013

    Hi Rod,

    I don’t think i put forth my points correctly. Yes what you are saying with regards to people is correct and yes some people may get cut on cell phone.

    So do this in functions.php you can change fit_always = 0 change this to 1.

    And fit_portrait=1 change this to 0.

    Then images would fit always in the screen but would show black or the default background.

    Regards,
    Shri

    #3389
    Sonal S SinhaSonal S Sinha
    Keymaster
    • Topics: 10
    • Replies: 6994
    • Total: 7004
    Member since: June 12, 2013

    Hi Norbert,

    Yes check functions.php and search stop_loop

    Below it has random. Change 0 to 1 and it will randomize the slider.

    Regards,
    Shri

    #3375
    Don WallerDon Waller
    Member
    • Topics: 12
    • Replies: 15
    • Total: 27
    Member since: October 14, 2014

    Okay, I tried that and got this error:

    Parse error: syntax error, unexpected ‘{‘ in /home/twisted/www/www/wp-content/themes/skt-photo-world-pro/functions.php on line 320

    I reloaded functions.php from my local ‘clean’ copy and the error went away.

    Here is code from line 320 to 322:

    <?php

    if ( (of_get_option('innerpageslider', true) != 'hide') || is_home() || is_front_page() ) {

    for ($i=1;$i<16;$i++) {

    Am I misplacing the new code? Should the <?php stay?

    Thanks.

    #3368
    Sonal S SinhaSonal S Sinha
    Keymaster
    • Topics: 10
    • Replies: 6994
    • Total: 7004
    Member since: June 12, 2013

    Hi Norbert,

    For sure you can. Just a very small part of code is involved. Check from Appearance>Editor>content-single.php and content.php

    Line number 12 or 13 where its written:

    comments_number

    Change it to the_author

    Do not touch any PHP tags. Let them be as it is.

    Regards,
    Shri

    #3367
    Sonal S SinhaSonal S Sinha
    Keymaster
    • Topics: 10
    • Replies: 6994
    • Total: 7004
    Member since: June 12, 2013

    Hi,

    Check functions.php line number 320 to 322.

    Replace with the following code and save: if( $imgUrl != ” ){

    echo ‘{image : \”.$imgUrl.’\’, title : \”.( ($imgTitle!=”) ? ‘<div class=”slide-title”><span>’ : ” ).( ($imgHref!=” && $imgTitle!=”) ? ‘<a href=”‘.$imgHref.'” target=”_blank”>’ : ”).$imgTitle.( ($imgHref!=” && $imgTitle!=”) ? ‘</a>’ : ”).( ($imgTitle!=”) ? ‘</span></div>’ : ” ).( ($imgDesc!=”) ? ‘<div class=”slide-description”><span>’.esc_html($imgDesc).'</span></div>’ : ” ).( ($imgHref != ”) ? ‘<div class=”slide-description”><span><a href=”‘.$imgHref.'” target=”_blank”>Read More &rsaquo;</a></span></div>’ : ”).’\’, thumb : \”.$imgUrl.’\’, url : \’\’}’.( ($i==15) ? “” : “,”).”\n”;

    }

     

    #3298
    Daniel HillDaniel Hill
    Member
    • Topics: 3
    • Replies: 7
    • Total: 10
    Member since: July 21, 2014

    Hi Shri,

     

    I have been looking at the header.php and am trying to find the code that needs to be changed to adjust the width of the page, would you be able to show me the lines that i need to change?

    Thanks

    Dani

    <?php

    /**

    * The Header for our theme.

    *

    * Displays all of the <head> section and everything up till <div id=”content”>

    *

    * @package SKT Full Width

    */

    ?><!DOCTYPE html>

    <html <?php language_attributes(); ?>>

    <head>

    <meta charset=”<?php bloginfo( ‘charset’ ); ?>”>

    <meta name=”viewport” content=”width=device-width, initial-scale=1″>

    <title><?php wp_title( ‘|’, true, ‘right’ ); ?></title>

    <link rel=”profile” href=”http://gmpg.org/xfn/11″>

    <link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>”>

    <link rel=”icon” type=”image/x-icon” href=”<?php echo esc_url( of_get_option(‘favicon’, true) ); ?>” />

    <?php

    $slAr = array();

    for ($i=1;$i<16;$i++) {

    if ( of_get_option(‘slide’.$i, true) != “” ) {

    $imgUrl = of_get_option(‘slide’.$i, true);

    if ( strlen($imgUrl) > 3 ) $slAr[] = of_get_option(‘slide’.$i, true);

    }

    }

    ?>

    <?php wp_head(); ?>

    <link rel=”stylesheet” type=”text/css” href=”<?php echo get_template_directory_uri();?>/css/style_base.css”>

    </head>

     

    <body <?php body_class(); ?>>

    <?php

    $front_page = get_option(‘page_on_front’);

    $post_page = get_option(‘page_for_posts’);

    ?>

    <div id=”page” class=”hfeed site”>

    <?php do_action( ‘before’ ); ?>

     

    <?php if( (is_front_page() || is_home() ) && ($front_page == 0 && $post_page == 0) ){ ?>

    <?php if( count($slAr) > 0 ){ ?>

    <div class=”slider-parent”>

    <div class=”slider-wrapper theme-default container <?php if( is_front_page() || is_home()  ){ echo ‘home_front_wrap_main’; } ?>”>

    <!–Thumbnail Navigation–>

    <div id=”prevthumb”></div>

    <div id=”nextthumb”></div>

    <div id=”thumb-tray” class=”load-item”>

    <div id=”thumb-back”></div>

    <div id=”thumb-forward”></div>

    </div>

    <div id=”progress-back” class=”load-item”>

    <div id=”progress-bar”></div>

    </div><!–Time Bar–>

    <div id=”slidecaption”></div><!–Slide captions displayed here–>

    <div id=”controls-wrapper” class=”load-item”>

    <div id=”controls”>

    <a id=”play-button”><img id=”pauseplay” src=”<?php echo get_template_directory_uri();?>/images/img/pause.png”/></a>

    <!–Arrow Navigation–>

    <a id=”prevslide” class=”load-item”></a>

    <a id=”nextslide” class=”load-item”></a>

    <div id=”slidecounter”>

    <span class=”slidenumber”></span> / <span class=”totalslides”></span>

    </div><!–Slide counter–>

    </div>

    </div><!–Control Bar–>

     

    </div><!–.container–>

    </div><!–.slider-parent–>

    <?php } //if( count($slAr) > 0 ){ ?>

    <?php } ?>

     

    <div id=”wrapper”>

    <div id=”secondary” class=”widget-area <?php if( is_front_page() || is_home()  ){ echo ‘home_front_wrap’; } ?>” role=”complementary”>

    <div class=”header”>

    <div class=”logo”>

    <h1 class=”site-title”><a href=”<?php echo esc_url( home_url( ‘/’ ) ); ?>” rel=”home”>

    <?php if( of_get_option(‘logo’, true) != ” ) { ?>

    <img src=”<?php echo esc_url( of_get_option(‘logo’, true) ); ?>” />

    <?php } else { ?>

    <?php bloginfo( ‘name’ ); ?>

    <?php } ?>

    </a></h1>

    <p class=”site-description”><?php bloginfo( ‘description’ ); ?></p><br />

    </div>

    <div class=”show_hide_header”>

    <div id=”site-nav”>

    <h1 class=”menu-toggle”></h1>

    <div class=”screen-reader-text skip-link”><a href=”#content”><?php _e( ‘Skip to content’, ‘skt-full-width’ ); ?></a></div>

    <?php wp_nav_menu( array(‘theme_location’ => ‘primary’, ‘container’ => ”, ‘menu_class’ => ‘nav’) ); ?>

    </div><!– site-nav –>

    <?php if ( is_active_sidebar( ‘sidebar-2’ ) ) : ?>

    <?php dynamic_sidebar( ‘sidebar-2’ ); ?>

    <?php endif; ?>

    </div>

    <div class=”header-bottom”>

    <div id=”header-bottom-shape”>

    </div><!– header-bottom-shape2 –>

    </div><!– header-bottom –>

    <div class=”clear”></div>

    </div><!– header –>

    </div><!– secondary –>

     

    #3279

    In reply to: Footer Widgets

    Thomas EhrhardtThomas Ehrhardt
    Member
    • Topics: 1
    • Replies: 3
    • Total: 4
    Member since: January 6, 2015

    I have changed footer.php and functions.php to have 4 configurable sidebars at bottom….

    Are you interested in getting these 2 files?

    Demo: http://www.skymera.de/

    #3277

    In reply to: Footer Widgets

    Sonal S SinhaSonal S Sinha
    Keymaster
    • Topics: 10
    • Replies: 6994
    • Total: 7004
    Member since: June 12, 2013

    Hi,

    Sorry for your trouble. The 4th div is of contact us section manageable using Theme Options.

    To remove this and use anything else you can check footer.php and remove the code there and place anything (widget, plugin shortcode etc there).

    If you need help from us to remove that and apply anything else let us know.

    Regards,
    Shri

    #3272

    In reply to: Slider

    Sonal S SinhaSonal S Sinha
    Keymaster
    • Topics: 10
    • Replies: 6994
    • Total: 7004
    Member since: June 12, 2013

    Hi,

    In header.php you have

    Codes in between

    and then

    Some codes in between

    So you have to pick up header div and move it on top of the slider div. You might want to take a backup of the header and then edit it using edit plus or dreamweaver to make sure nothing is broken.

    Regards,
    Shri

    #3035

    In reply to: BK Black Pro

    Sonal S SinhaSonal S Sinha
    Keymaster
    • Topics: 10
    • Replies: 6994
    • Total: 7004
    Member since: June 12, 2013

    Okay do this as well: SKT Black Theme: Remove slider
    find header.php file in your theme directory >> …/wp-content/themes/skt-black-pro
    open header.php file and delete line no. 28 to 44.

    #3019

    In reply to: BK Black Pro

    Sonal S SinhaSonal S Sinha
    Keymaster
    • Topics: 10
    • Replies: 6994
    • Total: 7004
    Member since: June 12, 2013

    SKT Black Pro : Slideshow on/off
    find function.php file on your theme directory >> …/wp-content/themes/skt-black-pro
    open function.php file and go to line no. 156
    slideshow : 1 change this to 0

    #2921
    Sonal S SinhaSonal S Sinha
    Keymaster
    • Topics: 10
    • Replies: 6994
    • Total: 7004
    Member since: June 12, 2013

    Hi,

    hide navigation default in full width pro:
    find custom-functions.php file in inc folder of your theme directory
    Path: /wp-content/themes/skt_full_width_pro/inc
    open custom-functions.php and add this code after line no. 29
    jQuery(‘.show_hide_header’).css(‘display’,’none’);

    That’s it.

    Regards,
    Shri

    #2874
    Sonal S SinhaSonal S Sinha
    Keymaster
    • Topics: 10
    • Replies: 6994
    • Total: 7004
    Member since: June 12, 2013

    Hi Michele,

    Its within custom-functions.php
    Path to the file: wp-content/themes/iamonpro/inc/custom-functions.php

    Regards,
    Shri

Viewing 15 results - 1,936 through 1,950 (of 1,993 total)