Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Hyperlinks On One Line

Return to Member Forum

  • Author
    Posts
    • #64688
      Mark Gilvey
      Member

      I have hyperlinks scattered throughout a document and some of them get broken onto two lines. They are all pretty short but when they get close to the edge, they some times become two lines. What can I do to keep them on one line? Luckily I have a character style applied to each of them so that should help.

    • #64689
      Justin Sligh
      Member

      Mark,

      Applying “no break” should do the trick.

      If any of your links are longer than a line, it will break the remainder of your content. Assuming 100 percent of your links are short, applying no break is a good solution. You could also consider applying a condensed version of the font or adjust tracking.

      For long links, you can shorten the written URL while ensuring the full length version is correct within the hyperlinks pallet.

      • #64695
        Mark Gilvey
        Member

        All of the URLs are less than 20 characters. I just enabled the no break in the body paragraph (that controls the meat of the body copy) style but all my text when into overset. Did I not apply it correctly? Is there a way to apply it locally to just the breaking URL or would it be a better strategy to apply it overall like I think I just did (but lost all my copy).

      • #64696
        Justin Sligh
        Member

        Mark,

        If you apply “No Break” to a paragraph and have more than one line of text, it will have nowhere to go. You want to apply “No Break” only to a URL.

        How are you handling hyperlinks? Are you using the Hyperlinks pallet to great hyperlinks in the exported PDF?

        If you have not used the Hyperlinks pallet (Window>Interactive>Hyperlinks), you have two options to add your links.

        1. Manually – Select and copy the URL, select Create New Hyperlink from the icon in the lower right of the pallet.

        2. Automatically – Select Convert URLs to Hyperlinks in the upper right hand corner. Ensure that you select the scope of the search (e.g., Document, Story).

        Either way, you have the ability to assign a Character Style to these links. This style will contain the “No Break”. This is also where you could provide a short version of the link for text and the clickable link takes you to the full URL.

      • #64698
        Mark Gilvey
        Member

        Hi Justin, thank you for getting back to me so quickly. Let me articulate this better for you. I originally imported a Word doc that has hyper links in it. I changed the Character style it imported with it for those hyperlinks to a new name called Hyperlinks so it was easier to spot. I adjusted it to my liking. I’m not sure if that was important for you but I want you to have the full picture.

        The text that has hyperlinks could look like this: visit my website for more information <—that text would be linked or —> mywebsite.com <—that would be linked. I don’t have any long whacky URLs as text being linked, they all look like a string of words, some times just a few and on occasion, a whole sentence.

        To answer your Hyperlink Palette question, yes, when the Word doc imported, all the URLs went into that palette.

        WHAT I’VE TRIED
        1. First I tried enabling the “no break” checkbox in the Body paragraph style but that made all my text disappear and go into overset. UNDO.

        2. Then I did the same thing on the Hyperlink character style but it did the same thing but only sent most of the text into overset. Seems on page 147 is where it started this. UNDO.

        3. The last thing I’ve been doing is going page-by-page and selecting the hyphenated linked text and unchecking the Hyphenate checkbox that is on the properties bar at the top of my workspace. My friend told me to STOP THE MADNESS!

        4. Now I’m here :-)

        My friend was saying, just like you, that the character style that I’ve called Hyperlink should be where this is controlled but it doesn’t look like that is working. How can I troubleshoot this?

        BTW: the document is 450 pages.

    • #64700
      Justin Sligh
      Member

      Mark,

      It might be possible that your Hyperlinks Character Style has been applied to more than just the desired links.

      Consider trying the following:

      1. Backup your existing document

      2. Select all of the links within your Hyperlinks Pallet and click the delete icon.

      3. With no text selected, go to your Character Style pallet and select the Hyperlinks character style. Click the delete icon. Uncheck the preserve format option and select “None” for the replacement style.

      4. Ensure no text is currently selected and recreate your Hyperlinks Character Style. To begin with, I would set the color to something that stands our (e.g., magenta) Do not select “No Break” yet.

      5. Select Convert URLs to Hyperlinks in the upper right hand corner. Ensure that you select the scope of the search set to Document. In addition, check the Apply Character Style box and select your newly created Hyperlinks Character Style.

      6. Select Change All

      7. Scan the document to see if your links have been identified and if they have the bright color you selected in step 4.

      8. Ensure no text is selected, open the Hyperlinks Character Style and add the “No Break”.

      This should do the trick. It will strip out all instances of your hyperlinks character style where it may have been inadvertently applied and then use the hyperlinks pallet to automate the process of styling all of the links.

    • #64703
      Mark Gilvey
      Member

      I’ll give this a shot. Will get back to you Justin, thanks again.

    • #64710
      Mark Gilvey
      Member

      Hi Justin,

      For the sake of others reading this, I want them to know that THIS DID WORK. One addition though, on Step 5, to get to that dialog box, they need to go to Type/Hyperlinks & Cross-References/Convert URLs to Hyperlinks…

      I don’t know if this matters but while it did convert all URLs to hyperlinks, it converted each how ever they were written so if it did not have an “https://www&#8221; in front of the domain, it did not add it. That could be a problem for URLs that don’t bounce over to the www version of the website. But that’s not the problem I’m having.

      In my case:

      1. When I deleted all of the hyperlinks in the hyper link palette, it deleted all the hyper links that were also on text strings that were not URLs. For example, if I had the text “see more on my website” and I hyper-linked it to https://www.mywebsite.com, the URL was thrown out and the text never relinked (I suppose I would have to link it by hand). Lucky for me I took your advice and saved a backup version to go back to.

      2. To make matters even more complicated, the author applied goo.gl URL shorten so he could track the analytics of each link. That means that even if the text says http://www.mywebiste.com the shortened version attached to it says something else but goes to the same page. Just for your curiosity this “analytic” info can be found on this page under Learn More, 3rd bullet down: https://goo.gl/GFGHY

      Anyway, is there any help for this without having to dig up Albert Einstein?

    • #64714
      Justin Sligh
      Member

      Mark,

      I did not realize that you have these types of links already set up in the hyperlinks pallet.

      You may want to revert to your original version and check for where your hyperlinks character style has been inadvertently applied to other paragraphs.

      I would open your character style and give it a noticeable color like magenta. Scroll through your content, specifically starting around page 147, and see if the color has been applied to other paragraphs.

      If it is minor, you can clear the character style from each of the problem paragraph.

      If it is rampant throughout the document, try the following approach.

      1. Backup your document

      2. Delete your hyperlinks character style and replace with none

      3. Create a new hyperlinks character style from scratch and set it to magenta

      4. Select all of your hyperlinks within the hyperlinks pallet

      5. Select “Hyperlink Options” from the drop-down menu in the upper right corner of the hyperlinks pallet.

      6. Change only the character style option. Set to your new hyperlinks style.

      7. Review the document

      If you find that the color is still being applied to more than just your hyperlinks, there may have been an issue with the text that was selected when creating the link in Word. If that is the case, you will likely have a lot of fine tuning. With the character style set to a vibrant color, you should be able to make quick work as identifying the issue.

    • #64717
      Mark Gilvey
      Member

      Hi Justin,

      I think you nailed it! I looked closely at page 147 in both the Story Editor and the page and noticed that the first thing that went to Overset was a string of text that takes up 1 1/2 lines that as a URL link on it. It makes sense now. INDD was trying to find a place in the document where the line would exist on one line and not two. The fact that it is longer than one line put it in to permanent overset. I just need to get back to the author and figure out a better strategy for these longer lines.

      I think we got it!

    • #64718
      Justin Sligh
      Member

      Mark,

      Perfect. Im glad we found a solution.

      Long URLs are a pain
      If my documents are for print, I typically use a url shortener, such as the one you mentioned your author was using. You loose the branding of the domain name; however, people are much more likely to manually type them in.
      If my documents are digital only, I typically use the domain name with an ellipsis (https://google.com/&#8230;) and then add the URL to the actual link.

      In reference to your earlier comment about some domains without the prefix (www), I really hate that. In my opinion, it is a mistake and should be fixed. The casual web user is not going to understand this. The webmaster should add an A record to ensure the bare domain bounces over to www.

      Good luck with your project.

    • #64727
      Mark Gilvey
      Member

      My question with the www is why do they automatically assume you wouldn’t want that? Seems like selling candles with no wicks to me.

    • #64728
      Justin Sligh
      Member

      Mark,

      My hosting service does this automatically. Even when I work directly with the registrar, they do so as well.

      I think it depends on the service. In many cases, I believe that it is an instance where a user or inexperienced web designer makes modifications to the records.

    • #75958
      Anonymous
      Inactive

      Hi, same with my service provider that did their best to make things possible. They also makes changes on catchy taglines where they give me options using https://eatmywords.com/services/taglines/.

Viewing 10 reply threads
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads