I made a child of vantage premium
all look ok
tried entering this code in child function php
add_action( ‘wp’, ‘post_pw_sess_expire’ );
function post_pw_sess_expire() {
if ( isset( $_COOKIE[‘wp-postpass_’ . COOKIEHASH] ) )
// Setting a time of 0 in setcookie() forces the cookie to expire with the session
setcookie(‘wp-postpass_’ . COOKIEHASH, ”, 0, COOKIEPAT
got this in a box
( ! ) Parse error: syntax error, unexpected end of file in C:wampwwwwordpresswp-contentthemesvantage-chile-themefunctions.php on line 21
Call Stack
#
Time
Memory
Function
Location
1 0.0016 341168 {main}( ) ..theme-editor.php:0
2 0.0027 410032 require_once( ‘C:wampwwwwordpresswp-adminadmin.php’ ) ..theme-editor.php:10
3 0.0032 428208 require_once( ‘C:wampwwwwordpresswp-load.php’ ) ..admin.php:31
4 0.0036 439168 require_once( ‘C:wampwwwwordpresswp-config.php’ ) ..wp-load.php:37
5 0.0045 537272 require_once( ‘C:wampwwwwordpresswp-settings.php’ ) ..wp-config.php:89
so I thought I would hit the back stroke delete button and update file
now I cant even get into wordpress
this just comes up on screen
Reply
SHAUN2015
Member
Allowed markup: a blockquote code em strong ul ol li.
Put code in between `backticks`.
Did you include a link to your site, so that others can see the problem?
Notify me of follow-up posts via email
Mark this topic as resolved
About this Topic
RSS feed for this topic
Started 1 hour ago by SHAUN2015
Add this topic to your favorites (?)
Unsubscribe from Topic
This topic is resolved not resolved not a support question
Tags
No tags yet.
About
Blog
Hosting
Jobs
Support
Developers
Get Involved
Learn
Showcase
Plugins
Themes
Ideas
WordCamp
WordPress.TV
BuddyPress
bbPress
WordPress.com
Matt
Privacy
License / GPLv2
Code is Poetry.
Hi Shaun1733
Hopefully you’ve been able to resolve. If not, login to your server via FTP and download your child theme folder as a backup, then delete it. It’s located at /wp-content/themes/ WordPress will then default to Vantage parent.
If you’re trying to set the login timeout I’d recommend using a plugin:
https://wordpress.org/plugins/search.php?type=term&q=login+timeout
WILL THAT ALLOW THE PASWORD PAGE TO CLOSE AFTER SOMEONE HAS LEFT IT .
IM BUILDING THE WEBSITE OM MY OWN COMPUTER FIRST {LOCAL SERVER}
I JUST DUMPED THE DATBASE AND DELETE THE CHILD THEME AND START AGAIN .
WHAT IS THE BEST WAY TO KEEP A BACK UP OF A WEBSITE SO IF IT GOES WRONG
I CAN REVERT BACK TO THE BACKUP
THANKS FOR GETTING BACK TO ME
Sorry about the caps ( I didn’t see they were on }
No problem :)
If you make a mistake like that in a child theme you don’t need to start over. If you remove the child theme WordPress will revert to the parent theme and you’ll have access again
I’d recommend searching for a plugin that can achieve what you’re looking for. I’m not sure if the plugins listed at the link I sent will do what you’re asking but it’s a good place to start. A plugin solution would make things a lot easier.
(If you build your site locally and want to move the entire site to a live server we recommend using: https://wordpress.org/plugins/duplicator/)
So let me get this .
What ever I change on the child theme is getting changed on the patent theme automatically
So if I make a mistake like that I can delete a child theme .snd still have all my work.
But when I put in that code In before in child theme function php I could not get into the WordPress dashboard
until I dumped database,then it give access to WordPress .
I then delete child theme as soon as I had access .and mDe another child theme of vantage .
Hi :)
No, that’s not it.
Whether it’s the parent theme or the child theme, if you make a mistake and can’t enter WordPress, if you remove the theme folder from /wp-content/themes/ WordPress will revert to another theme. This will allow you access to the dashboard again.
Whatever you change in the child theme is not being changed in the parent theme automatically. If you make a mistake in the child theme and lose WordPress access you can remove the child theme folder to regain access. You must back the child theme up before doing this as you will lose it if you delete it.
Here is a quick overview on child themes:
https://codex.wordpress.org/Child_Themes
Ok that’s prefect
What way would recommend backing up the child theme
If you have FTP access to your server you can browse to /wp-content/themes/ and copy the “vantage-child” folder to your desktop. You can do the same with your Hosting File Manager. Each host will have a different file manager, for example:
http://support.hostgator.com/articles/cpanel/how-to-upload-a-file-using-the-file-manager
Thanks I’m still on my local server (my own PC) but it have copied the theme folder
I could not see a file manger I think that’s because I’m still on my PC not the web host server
I often would you back up the theme
And if I creat another back up after I finish my website
I can just delete the one in the folder
Probbley try putting on we host server in a week or so ,
Not in any hurry at moment
Thanks again
For sure :)
All the best.
I went to wordpress and went to wp theme click on child theme/copy and paste in desktop
if anything happens to my wp
if I copy and paste it back into my new child theme
will all my work still be up to date
That’s right. You now have a backup of your child theme. Changing themes won’t affect any of the content added to WordPress or theme settings or plugin settings.
This is a private message.
Sure :) The two that you might consider are:
1. WP-Members: https://wordpress.org/plugins/wp-members/
I like this one because it feels quite lightweight.
2. S2Member: https://wordpress.org/plugins/s2member/
Those are two of the more established options.
are they all work with vantage I have been searching
was there a problem with page builder about some content not been hidden or is that all sorted
WP-Members has an issue hiding Page Builder content. The issue should be sorted now.
I have installed s2 member
One question you might have the answer to
if I want put imformation on level 1 member that’s only for level one can see this be done
I want to call one member uk member and the other one irish member but don’t want uk members to see irish content
And don’t want Irish member seeing uk content ,
You might need to dive into the S2Member documentation and forum for this question. Sorry, I’ve carried out a basic setup of the plugin but haven’t built a site or worked with it beyond that.
Cheers thanks
Can you recommend a plugin to upload a site from a local server to main server
Thanks again for all your help
Definitely. We highly recommend:
https://wordpress.org/plugins/duplicator/
You need to create the database on your server and enter those details correctly into the Duplicator interface. That’s not the entire process but it is the most technical it gets.
Hope you have a smooth move. Don’t delete local, nice to have as a backup :)