Tagged: Coding
-
AuthorPosts
-
January 22, 2018 at 11:11 am #900736
Hi
I have some coding for a type of widget, however, I not to sure the best place to put the coding to activate it. I would not to change the files but to place through a plugin if required. Please, can you advise?
Details are below
January 23, 2018 at 6:19 am #901198Hey info224,
I’m not sure where you want to place the code, in the header or in the footer? If that is supposed to go in the sidebar then please try to place it in a widget under Appearance->Widgets.
Best regards,
RikardFebruary 5, 2018 at 3:32 pm #908039Hi
Sorry to bug you again however the code is not working when I place it in a widget.
This is an example of what it should look like its the HappyorNot widget
I have had the coders look at it again see below
The comments are strings must use singlequote, expected { but got a return and missing a semicolon.
Any thoughts please :)
February 5, 2018 at 4:01 pm #908056Hi info224,
Here is the code you can put in your funtions.php
If you need further assistance please let us know.
Best regards,
Victoria- This reply was modified 6 years, 9 months ago by Victoria.
February 5, 2018 at 4:12 pm #908066Hi
I’m assuming that’s is
functions-enfold.php
Do I have to flush the cache after?
Thanks
February 5, 2018 at 4:13 pm #908067sorry ignore me found it
February 5, 2018 at 4:16 pm #908068Hi
I have added it but unfortunately, nothing is appearing.
February 5, 2018 at 9:08 pm #908202Hi,
Please add it to functions.php so it can work.
Thank yiu
Best regards,
BasilisFebruary 5, 2018 at 9:30 pm #908212Hi
Yes I found it not the one as mentioned (not then Enfold one )and added but it doesn’t seem to be working
I’ve added the login details.
Thanks
Alex
February 6, 2018 at 5:08 am #908343Hi,
Make sure the code is added in functions.php of the theme you’re currently using (Enfold or the child theme), can you also try to replace the double quotes manually, sometimes it causes the issue.
”
should be looking like this:
"
Best regards,
NikkoFebruary 7, 2018 at 7:21 pm #909352Hi
I am sorry but I have changed the double quotes and I’m still having problems i.e. it’s still not showing I would be very grateful if someone could have a look I have included the login details aboveThanks
February 8, 2018 at 2:30 am #909517Hi,
Can you try to give us ftp access also? so it’s safer to make changes on functions.php.
Best regards,
NikkoFebruary 8, 2018 at 7:16 am #909613Hi
Many thanks that’s great. By the way we are moving to a dedicated server on Saturday morning
Many thanks
February 8, 2018 at 10:03 am #909655Hi,
That’s great, hope migration runs smoothly without any issues :)
Thanks for giving us ftp access, however you forgot to include the ftp password.Best regards,
NikkoFebruary 8, 2018 at 11:30 am #909698Oops sorry that’s what happen when you answer early in the morning. Lol
Thanks
February 8, 2018 at 11:38 am #909701Hi
Sorry to be a pain but I’ve just been told the migration is in progress so perhaps we could look at this issue on Monday.
February 8, 2018 at 11:46 am #909708Hi info224,
Yeah, no worries :) Just post back here once the migration is done so we can check on it.
Best regards,
NikkoFebruary 22, 2018 at 10:32 am #915952Hi
The migration has been completed and the FTP details are many thanks
February 23, 2018 at 5:53 pm #916779Hi
I have two clients wanting to use this widget so I would be grateful if someone could look at it, please.
Thanks for your help as always.
February 24, 2018 at 3:50 am #916949Hi,
We created a custom widget area in the Appearance > Widgets panel and then added the script in a Custom HTML widget. You can find the “happyornot” widget in a test page. ( see private field )
Best regards,
IsmaelFebruary 24, 2018 at 1:16 pm #917068Wow, that’is brilliant thank you so much I am very grateful.
Two questions
1) Will this be overridden in the next theme update?
2) I have another client who wants this I’ve not started designing their website so I wondered the easiest way of copying it across.I am really am made up thanks to everyone involved :)
February 25, 2018 at 3:55 pm #917413Hi info224,
If the code is in the child theme, it will remain. You can copy the code to the other installation to functions.php and it will work.
If you need further assistance please let us know.
Best regards,
VictoriaFebruary 25, 2018 at 4:05 pm #917419Hi
I’m not using a child theme.
Thanks
February 25, 2018 at 4:24 pm #917433Hi info224,
So, you should be. You should have the child theme for this kind of modifications.
Best regards,
VictoriaFebruary 25, 2018 at 4:41 pm #917446Yep, I know but it has sort of overgrown from a simple site to one which with quite a lot of coding etc. I suppose it’s too late to change it to a child?
February 26, 2018 at 3:33 am #917638Hi,
It’s never too late to start using a child theme, I would recommend that you try to install one and move all your customisations into it. The longer you wait with using a child theme, the harder it will get once you decide that you need it.
Best regards,
RikardFebruary 26, 2018 at 7:09 pm #917925Hi Rikard
That’s very kind of you to say and helpful. One thing I think that the php file has been amended with the above mentioned will that move over okay to please so I export the theme settings just encase I need to import them.
Thanks
Alex
February 27, 2018 at 8:39 am #918271Hi,
Yes, please do export the theme settings just in case, though there’s an option to import parent theme settings in Enfold > Import/Export, a backup would reduce the risk :)
Best regards,
NikkoFebruary 28, 2018 at 10:40 am #918919hi
Will do thanks
February 28, 2018 at 11:50 am #918976Hi,
Glad to hear that, just post back if you need further assistance :)
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.