Welcome to TalkGraphics.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,925

    Question Permanetly change the close.png icon

    I dislike the default close icon that Xara uses to close a pop-up layer if Close Automatically is unchecked.

    I can always replace it in the index_htm_files folder, however each time I republish it will revert back to the Xara default.

    How would I change it permanetly by overwriting it in Xaras root file. Can anyone point me in the right direction please?
    Attached Images Attached Images  
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  2. #2
    Join Date
    Dec 2018
    Location
    Australia
    Posts
    1,776

    Default Re: Permanetly change the close.png icon

    I find using the 'layer_name(lock)' method, quick, simple and infinitely customisable.

    Create layer and name it whatever, but add (lock) at the end of the name
    Add content to your layer with the addition of a closing button, shape, text etc
    Select your closing button
    Go to Utilities > Web Properties > Link (tab) > Link To Web Or Email Address (radio Button) and type popup:close

    On MouseOff, select the opening button, shape, text etc. to open the layer
    Go to Utilities > Web Properties > Link (tab) > Pop-Up Layer (radio button) and use the drop-down menu to choose your layer
    Under Settings, leave Close Pop-Up Automatically ticked and set any Transitions you may want

    This way you can use a different closing graphic for each layer. Example below

    >>> Menu Lock.web <<<
    Last edited by Chris M; 09 February 2022 at 12:02 AM. Reason: I can't spell 'below'

  3. #3
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,925

    Default Re: Permanetly change the close.png icon

    Excellent Chris. Far better than changing the default icon. Thank you.
    Attached Files Attached Files
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  4. #4
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,856

    Default Re: Permanetly change the close.png icon

    Egg, a long time ago I just hide the close icon.

    In HTML Code (body):

    <script>
    $('img.xr_ap[src*="close.png"]').hide();
    </script>

    I then put a shape with popup:close on the page.

    This way the close action can appear anywhere.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  5. #5
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,925

    Default Re: Permanetly change the close.png icon

    Two ways to do it now ;-) Cheers Acorn.
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  6. #6
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,856

    Lightbulb Re: Permanetly change the close.png icon

    Egg, sorry - three:

    jQuery - customised Close icon.xar

    The Method
    • Design a 32px close icon
    • Group if needed
    • Add Name of 'closer'
    • In Web Properties > Website Code(body), put:

    <script>
    $('img.xr_ap[src*="close.png"]').attr('src', $('#closer').attr('src').replace('@2x', ''));
    </script>

    The @2x part ensures any Retina is omitted from your closer icon, otherwise it will double in size.
    The jQuery seeks out all Xara close icons and replaces each with the custom one across all layers.

    It would be very simple to include CSS to pulse or rotate non-circular shpaes to make you closer distinctive.

    It requires jQuery, although it could be coded to not use it.
    Drag the closer icon off the page and toy restore the Xara one.

    I also used a Reveal web animation to prevent the close icon master shape form being visible.
    If too confusing, just hide it under something else.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  7. #7
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,925

    Default Re: Permanetly change the close.png icon

    That works excellently too Acorn. Added to my goodies folder along with Chris's
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

 

 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •