Inkers92
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Zerif Lite] Code showing on pagesHi Hardeep,
Yes, I uploaded via FTP. Didn’t realise it could mess up the code. I uninstalled the theme and then reinstalled via the Theme Installer and everything now seems to be working fine.
For anyone else experiencing this, I was concerned that I would lose customisations and my child theme with the uninstall but everything worked out beautifully.
Thanks for the theme.Forum: Fixing WordPress
In reply to: Post content including sidebar and footer not showingOK so turned on debugging and got the following error in my theme.
Parse error: syntax error, unexpected end of file in /themes/zerif-lite-child/content-single.php on line 1
Line 1 is just an opening <?php though with no white space that I can see before it so I am guessing the error is from somewhere else?
Forum: Fixing WordPress
In reply to: Post content including sidebar and footer not showingSooooo, I set up debugging and am getting the following error in my child theme.
Parse error: syntax error, unexpected end of file in ./zerif-lite-child/content-single.php on line 1
[Large code excerpt removed by moderator per forum rules. Please use the pastebin for all large code excerpts. It works better anyway.]
Forum: Themes and Templates
In reply to: [Zerif Lite] Code showing on pagesActually, I have figured out that the code that is displaying is from jetpack.php and extras.php in the includes. I just can’t figure out why the code is displaying in the browser. Any help appreciated.
Forum: Fixing WordPress
In reply to: Script appearing on pages, even in dashboardHi Tara,
Thanks for getting back. I deactivated all plugins, but no joy.
I have done a bit of scratching around and discovered that the code showing is from two included files (jetpack.php and extras.php) in my theme (Zerif Lite). I understand that it is possible to include php before the Doctype declaration, but am struggling to figure out why the code is displaying here. Both have opening php tag but no closing tag, but I believe this isn’t a problem. The following two lines are in functions.php file if that helps?require get_template_directory() . ‘/inc/extras.php’;
require get_template_directory() . ‘/inc/jetpack.php’;When I remove both I get a blank white screen.
This appears in header.php before the Doctype<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id=”content”>
*
* @package zerif
*/?><!DOCTYPE html>
Maybe I am missing something really simple. Stumped.
Forum: Fixing WordPress
In reply to: Problem restoring localhost siteThanks, it was my db host that was causing the connection error. Next issue is that when it connects I have code showing as html before the header that doesn’t show on localhost. Weird.
Forum: Fixing WordPress
In reply to: Problem restoring localhost siteHey Justin,
Thanks for that. I figured out the error. When I entered the url under settings I used localhost/sitename. Now I have changed it to http://localhost/sitename and everything seems to have returned to normal.. for now. Hopefully everything is ok.. now I just have to figure out what was causing the database connection error! BTW – if anyone could point me to the absolute best step by step of migrating site from localhost to hosting, I would be grateful.Forum: Themes and Templates
In reply to: [Zerif Lite] Header PositionTry target the .navbar-brand class in your custom css. It currently has padding of 15 pixels all around it. Adding padding:0; might help. Also, I don’t know what browser you are using, or if you use any developer tools, but they are gold when trying to see what is doing what.
Forum: Themes and Templates
In reply to: [Zerif Lite] Make text links in Our Focus sectionHi Hardeep,
I got that working – thanks for the advice. I love the theme by the way.Forum: Themes and Templates
In reply to: [Zerif Lite] Zerif Widgets – HTML in text?Hi all, I think that I have this working – nothing seems broken so far!
All of the above pointed me in the right direction. I was trying to make the titles link to the same place as the image link.To get it to work in child theme you need to copy the full class into your child theme’s functions.php. (Don’t forget to close the last php tag)
Follow the steps in this link – http://themegrill.com/support-forum/topic/override-widget-php-in-child-theme/
and register your new widget eg zerif_child_ourfocus.
Make the changes to your function as per your additions in earlier posts above and then when you go into Appearance – Widgets your new child widget should be there. When you click it you can add it to whatever section you please.
Voila. Hope this helps.Forum: Themes and Templates
In reply to: [Zerif Lite] Make text links in Our Focus sectionSeems like a large task just to create a link! I would suggest that this is a feature that would be a useful addition to your theme.
Forum: Themes and Templates
In reply to: [Zerif Lite] Make text links in Our Focus sectionCheck this link.
https://wordpress.org/support/topic/zerif-widgets-html-in-textForum: Themes and Templates
In reply to: [Zerif Lite] Make text links in Our Focus sectionI have tried changing the code in functions.php and I can change the titles to links but it doesn’t work when I implement it on my functions file in my child theme. Why is that?
Forum: Themes and Templates
In reply to: [Zerif Lite] Changing the Navigation BarHi,
Are you sure you are targeting the element correctly. I usually put this in to make sure I have the correct element. (Don’t forget to remove it after!)border:2px solid red;
Also, I recommend that you read this on changing the background of things.
http://www.w3schools.com/css/css_background.asp
At the moment you seem to have it set to white (#FFF).
Forum: Themes and Templates
In reply to: [Zerif Lite] Problems using zerif-lite child themeHi Hardeep,
Thanks for taking the time to get back. Site is on localhost so can’t show but problem is solved. For anyone else who may be experiencing this it is the WordPress toolbar that is the problem, go to your WordPress profile and untick the “Show toolbar when viewing site” setting in there. I think this is the solution anyway because when I unticked it my collapsed menu was available at screen sizes under 600 again – don’t know why it happened at exactly 600, but there ya go.