Tagged: 

Viewing 30 posts - 1 through 30 (of 35 total)
  • Author
    Posts
  • #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

    #901198

    Hey 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,
    Rikard

    #908039

    Hi

    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 :)

    #908056

    Hi 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.
    #908066

    Hi

    I’m assuming that’s is

    functions-enfold.php

    Do I have to flush the cache after?

    Thanks

    #908067

    sorry ignore me found it

    #908068

    Hi

    I have added it but unfortunately, nothing is appearing.

    #908202

    Hi,

    Please add it to functions.php so it can work.

    Thank yiu

    Best regards,
    Basilis

    #908212

    Hi

    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

    #908343

    Hi,

    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,
    Nikko

    #909352

    Hi
    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 above

    Thanks

    #909517

    Hi,

    Can you try to give us ftp access also? so it’s safer to make changes on functions.php.

    Best regards,
    Nikko

    #909613

    Hi

    Many thanks that’s great. By the way we are moving to a dedicated server on Saturday morning

    Many thanks

    #909655

    Hi,

    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,
    Nikko

    #909698

    Oops sorry that’s what happen when you answer early in the morning. Lol

    Thanks

    #909701

    Hi

    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.

    #909708

    Hi info224,

    Yeah, no worries :) Just post back here once the migration is done so we can check on it.

    Best regards,
    Nikko

    #915952

    Hi

    The migration has been completed and the FTP details are many thanks

    #916779

    Hi

    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.

    #916949

    Hi,

    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,
    Ismael

    #917068

    Wow, 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 :)

    #917413

    Hi 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,
    Victoria

    #917419

    Hi

    I’m not using a child theme.

    Thanks

    #917433

    Hi info224,

    So, you should be. You should have the child theme for this kind of modifications.

    Best regards,
    Victoria

    #917446

    Yep, 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?

    #917638

    Hi,

    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,
    Rikard

    #917925

    Hi 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

    #918271

    Hi,

    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,
    Nikko

    #918919

    hi

    Will do thanks

    #918976

    Hi,

    Glad to hear that, just post back if you need further assistance :)

    Best regards,
    Nikko

Viewing 30 posts - 1 through 30 (of 35 total)
  • You must be logged in to reply to this topic.