Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #871076

    Hello
    I used an icon shortcode [av_font_icon icon='ue88d' font='entypo-fontello' style='' caption='' link='' linktarget='' size='20px' position='left' color='' custom_class=''][/av_font_icon] in a great many pages on our site, Now I want to change the icon size to 15px, without affecting any thing else on the site. Can I use a searchreplace plug in or what do you suggest is the best way?

    Also, I saw a post that referred to another post, i.e. it said “In reference to #post-292836 and implementing graphic buttons for the menu items …” but I could not find post 292836 – how does one find posts by number?

    Thanks

    #871111

    Another question, I created a template of a color section. I want to add that section template to all pages (not posts) as the last element above the footer; is there a way to do that without manually doing so on each page?
    Thanks

    #872005

    Hi,

    We haven’t tried that one before but you can do a backup and do the search and replace, I think it would work.
    If it doesn’t you can also try this: enable Avia Layout Debugger: https://kriesi.at/documentation/enfold/enable-advanced-layout-builder-debug/
    then copy the shortcode ALB renders to a text editor and do a find an replace then copy again the result and paste it back to the site.

    As for the 2nd question, you can use a child theme copy footer.php from Enfold then paste it on the child theme and tweak it, but it would require some time to write it. You can instead create a page with just the section you mentioned then save it as template, you can see it in this screenshot: https://imgur.com/a/3pMly after that go to other pages and load the template. Hope this helps.

    Best regards,
    Nikko

    #872035

    Hi Nikko

    Thanks for the info. Re 2nd question, I did use a template but that means doing each page one by one and I wanted to apply the template to all pages at one go, like a batch function, or selected pages. That’s useful if you sometimes forget some element or make a text change to common section for example and need to update all or selected pages, and not do one by one as very time consuming.

    I also have this question: I saw a post that referred to another post, i.e. it said “In reference to #post-292836 and implementing graphic buttons for the menu items …” but I could not find post 292836 – how does one find posts by number?

    One more issue: I have a javascript code snippet I want to put at the end of a line of text in an icon box. I tried using around it but when I click OK to close the icon box editor, it executes, and renders it on a new ‘page’ and I have to hit back arrow on the browser to get back to my site and goes back to the Enfold advanced builder page layout for the page. So then I go back to the icon box and that with javascript is not there. I used it the same way at the end of the line of text on my old flat html site where it works fine. All I did was copy and paste the same self-contained section of javascript. I gave you the details below. Please advise how to include this.

    Thanks

    #872885

    Hi,

    I think what you can do instead is to enable Avia Layout Debug: https://kriesi.at/documentation/enfold/enable-advanced-layout-builder-debug/
    then go to the page that contains only the section you would like to use and copy the shortcode it generated and paste it above the footer in footer.php, you can use this format:

    <?php echo do_shortcode("[shortcode]"); ?>

    just replace [shortcode] with the shortcode you have copied.

    As for the references you have posted above, can you post the whole link instead since it hard to track just with it.

    As for the javascript, please use the Code Block instead and it should work properly for that page.

    Best regards,
    Nikko

    #872896

    Thanks Nikko

    Here is the post

    In that post, there is a reference to a post # as the poster says
    Hi guys
    In reference to #post-292836 and implementing graphic buttons ..

    How do I find post 292836??

    I used the code block and it did not work. I had used that around my javascript and this happened (I think the < code > I pasted into my post was removed from the text) and so I clarified below

    I tried using a code block around the javascript but when I click OK to close the icon box editor, it executes the javascript, and renders it on a new ‘page’ and I have to hit back arrow on the browser to get back to my site which goes back to the Enfold advanced builder page layout for the page. So then I go back to the icon box and the javascript or code block is not there. I the same javascript at the end of a line of text on my old flat html site where it works fine. All I did was copy and paste the same self-contained section of javascript. I gave you the details below.

    Thanks

    #873956

    Hi,

    I haven’t tried this plugin but it allows you to search for a specific text and replace it with something else.

    // https://wordpress.org/plugins/better-search-replace/

    You might want to search for the whole shortcode because “size” is a common shortcode attribute.

    IMPORTANT: Create a backup of the site and the database before using the plugin.

    Best regards,
    Ismael

    #878651

    Thanks Ismael. It works well.

    I am still waiting for an answer to how you search by a post number after posting the reference asked by Nikko, above.

    Thanks

    #878787

    Hi s29ers,

    Glad to hear that. As for the post number I tried to look for it but could not find it, that’s why usually we ask for links instead of just post number.

    Best regards,
    Nikko

    #879432

    Right, but I did post the link in which the post number I was looking for too, was given. Since all posts have a number, how can we use that number if needed.

    I have another question, I have an icon in the sticky menu. It’s not centred vertically so I inspected it on Chrome and edited the line-height which is one way I did centre it temporarily to see, but am trying to figure out what CSS woudl do that so I can add that in the Quick CSS but not having any luck. Can you please help? I included a link in the section below.

    Thanks

    #879489

    Hi,

    Are you referring to the cart icon? It looks centered. If you want to adjust the vertical position, try this css code.

    #menu-item-6524 .av-icon-char {
        top: 5px;
        position: relative;
    }

    Best regards,
    Ismael

    #879971

    Brilliant. Thanks a lot Ismael.

    #880001

    Hi,

    Glad that Ismael helped you. Thanks for using Enfold :)

    Best regards,
    Nikko

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Global replace of text/shortcode’ is closed to new replies.