yatiya
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Make phone number clickable in headerWell, it’s actually a free theme, and it’s not really a fault with the theme.
I thought these forums were for help with coding, so I was hoping that someone could help me with the coding, since that’s all this really is: I don’t know how to code a clickable phone number AND keep it split over two lines.
Forum: Fixing WordPress
In reply to: Make phone number clickable in headerThank you, but that only works for a single number as far as I know? I need to keep both numbers, split over two lines, displayed as numbers (not “Call me”)
Forum: Fixing WordPress
In reply to: Auto adjust font size for smaller screensNevermind. Somehow it sorted itself out.
Forum: Fixing WordPress
In reply to: Formatting headerYeah, I thought as much. Thanks!
Any thoughts on this? https://www.ads-software.com/support/topic/blog-page-posts-link?replies=6Forum: Fixing WordPress
In reply to: Formatting headerHi Lorro
Another query: How would I make those phone numbers clickable on a mobile phone? So if a user taps it, it must open his phone to allow him to dial?
Forum: Fixing WordPress
In reply to: Blog Page posts linkThanks, I did the above, but it still displays the href markup instead of a smart link on the blog page (obviously only when I’m logged in). (displaying < a h r e f=”h t t p://www.entdocatiya.co.za/wp/wp-admin/post-new.php”>Get started here< / a >. instead of “Get started here” as a link)
I suppose I could just create a post to make it go away, but deep down I’ll always know that something is not adding up!
Forum: Fixing WordPress
In reply to: Blog Page posts linkThis is what is in my no-results.php file. Is it possible something here is wrong? It all looks good to me?
<header>
<h1 class=”entry-title”><?php esc_html_e( ‘Nothing Found’, ‘spirited-lite’ ); ?></h1>
</header><div class=”blog-post”>
<?php if ( is_home() && current_user_can( ‘publish_posts’ ) ) : ?><p><?php printf( esc_attr__( ‘Ready to publish your first post? Get started here.’, ‘spirited-lite’ ), esc_url( admin_url( ‘post-new.php’ ) ) ); ?></p>
<?php elseif ( is_search() ) : ?>
<p><?php esc_html_e( ‘Sorry, but nothing matched your search terms. Please try again with some different keywords.’, ‘spirited-lite’ ); ?></p>
<?php get_search_form(); ?><?php else : ?>
<p><?php esc_html_e( ‘It seems we can’t find what you’re looking for. Perhaps searching can help.’, ‘spirited-lite’ ); ?></p>
<?php get_search_form(); ?><?php endif; ?>
Forum: Fixing WordPress
In reply to: Blog Page posts linkThank you. It looks like my .htaccess file is correct?
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule># END WordPress
If I reinstall wordpress, will my theme, pages etc be deleted?
Forum: Fixing WordPress
In reply to: Formatting headerHey thanks so much! Really appreciate it!
Forum: Fixing WordPress
In reply to: Formatting headerThanks again. I’ve been editing a child theme, so no worries about losing customizations.
I’ve run into another issue, since editing the header contacts, the footer contact has changed its format. It rode up into the address, which I fixed easily with a
command in the footer, but the number is too far right justified now.Any ideas?
Forum: Fixing WordPress
In reply to: Formatting headerCan you maybe healp me with adding a logo to the right of my Name and Qualifications?
The theme has a facility for this, but it’s commented out, and I haven’t been able to hard code it!
This is the code for header.php (I’ve made a few edits aleeady)
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div class=”container”>
*
* @package SKT Spiritedlite
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset=”<?php bloginfo( ‘charset’ ); ?>”>
<meta name=”viewport” content=”width=device-width, initial-scale=1″>
<link rel=”profile” href=”https://gmpg.org/xfn/11″>
<link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>”>
<?php wp_head(); ?>
</head><body <?php body_class(); ?>>
<div class=”header”>
<div class=”signin_wrap”>
<div class=”topfirstbar”>
<div class=”topbarleft”>
<div class=”icon-left-top”>
<?php if( ” !== get_theme_mod(‘contact_mail’)){?>
“><i class=”fa fa-envelope fa-1x”></i><?php echo esc_attr(get_theme_mod(‘contact_mail’,’[email protected]’)); ?>
<?php } ?>
</div>
<div class=”icon-left-top bgnone”>
<?php if( ” !== get_theme_mod(‘contact_no’)){ ?>
<i class=”fa fa-phone fa-1x”></i><?php echo str_replace (‘^’,’
‘,get_theme_mod(‘contact_no’, ‘+1 800 234 568’)); ?>
<?php } ?>
</div>
</div>
<div class=”topbarright”>
<div class=”top-phonearea”>
<div class=”social-top”>
<div class=”social-icons”>
<?php if ( ” !== get_theme_mod( ‘fb_link’ ) ) { ?>
“>
<?php } ?>
<?php if ( ” !== get_theme_mod( ‘twitt_link’ ) ) { ?>
“>
<?php } ?>
<!– <?php if ( ” !== get_theme_mod(‘gplus_link’) ) { ?>
“>
<?php }?>
<?php if ( ” !== get_theme_mod(‘linked_link’) ) { ?>
“>
<?php } ?> –>
</div>
</div>
</div>
</div>
<div class=”clear”></div>
</div>
</div>
<!–end signin_wrap–>
<div class=”header-inner”>
<div class=”logo”> “>
<h1>
<?php bloginfo(‘name’); ?>
</h1>
<span class=”tagline”>
<?php echo str_replace(‘^’,’
‘,get_bloginfo(‘description’)); ?>
</span> </div>
<!– logo –>
<div class=”toggle”>
<?php esc_attr_e(‘Menu’,’spirited-lite’); ?>
</div>
<!– toggle –>
<div class=”nav”>
<?php wp_nav_menu( array(‘theme_location’ => ‘primary’)); ?>
</div>
<!– nav –>
<div class=”clear”></div>
</div> <!– header-inner –>
</div><!– header –><?php if ( is_front_page() && ! is_home() ) { ?>
<section id=”home_slider”>
<?php
$sldimages = ”;
$sldimages = array(
‘1’ => get_template_directory_uri().’/images/slides/slider1.jpg’,
‘2’ => get_template_directory_uri().’/images/slides/slider2.jpg’,
‘3’ => get_template_directory_uri().’/images/slides/slider1.jpg’,
); ?>
<?php
$slAr = array();
$m = 0;
for ($i=1; $i<4; $i++) {
if ( get_theme_mod(‘slide_image’.$i, $sldimages[$i]) != “” ) {
$imgSrc = get_theme_mod(‘slide_image’.$i, $sldimages[$i]);
$imgTitle = get_theme_mod(‘slide_title’.$i);
$imgDesc = get_theme_mod(‘slide_desc’.$i);
$imgLink = get_theme_mod(‘slide_link’.$i);
if ( strlen($imgSrc) > 2 ) {
$slAr[$m][‘image_src’] = get_theme_mod(‘slide_image’.$i, $sldimages[$i]);
$slAr[$m][‘image_title’] = get_theme_mod(‘slide_title’.$i);
$slAr[$m][‘image_desc’] = get_theme_mod(‘slide_desc’.$i);
$slAr[$m][‘image_link’] = get_theme_mod(‘slide_link’.$i);
$m++;
}
}
}
$slideno = array();
if( $slAr > 0 ){
$n = 0;?>
<div class=”slider-wrapper theme-default”>
<div id=”slider” class=”nivoSlider”>
<?php
foreach( $slAr as $sv ){
$n++; ?>
<img src=”<?php echo esc_url($sv[‘image_src’]); ?>” alt=”<?php echo esc_attr($sv[‘image_title’]);?>” title=”<?php echo esc_attr(‘#slidecaption’.$n) ; ?>” />
<?php
$slideno[] = $n;
}
?>
</div>
<?php
foreach( $slideno as $sln ){ ?>
<div id=”slidecaption<?php echo esc_attr($sln); ?>” class=”nivo-html-caption”>
<div class=”slide_info”>
<h2><?php echo esc_attr(get_theme_mod(‘slide_title’.$sln, __(‘Welcome To Our Website’,’spirited-lite’))); ?></h2>
<p>
<?php echo esc_attr(get_theme_mod(‘slide_desc’.$sln, __(‘Quisque blandit dolor risus, sed dapibus dui facilisis sed. Donec eu porta elit. Aliquam porta sollicitudin ante, acntum orci mattis et. Phasellus ac nibh eleifend, sagittis purus nec, elementum massa. Quisque tincidunt sapien a sem porttitor, id convallis dolor’,’spirited-lite’))); ?>
</p>
<!– “>
<?php esc_attr_e(‘Read More’, ‘spirited-lite’); ?>
</div> –>
</div>
<?php } ?>
</div>
<div class=”clear”></div>
<?php } ?>
</section>
<div class=”clear”></div>
<?php } ?>Forum: Fixing WordPress
In reply to: Formatting headerThanks. That did it!!!! Can I give you a bump or something?
Forum: Fixing WordPress
In reply to: Please help with tweaking layoutThanks Graphicscove
I’m not sure whch suggestions you’re referring to. I don’t see any.
Nevertheless, I’ve been able to get 3 and 4 right, with some help from CSS editor add ins, and a bit of playing around.
Points 1, 2 and 5 still elude me….