The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Can I mix HTML <base href="...."> AND absolute file pathsin the same page?
miles_muso
post Jan 22 2021, 10:44 AM
Post #1





Group: Members
Posts: 2
Joined: 22-January 21
Member No.: 27,741



Hi All,

Newbie to this forum.

I write copy for a website, using WordPress. I only have author rights, not admin. I can't alter the CSS styles, nor can I add child CSS styles.

My copy always includes a lot of images, which I upload through WordPress. These get stored on a local server, as follows:

https://www.my_company.com/wp-content/uploa...01/an_image.jpg

For one article, I also want to include soundclips. I know how to get these to appear in WordPress, but I have a question about the path where they're stored.

For reasons that aren't important, I will not be able to specify the soundclip storage path until minutes before the article is published. So what I would like to do is use the <base> tag but leave it empty, so at the last minute, all I'll need to do is this:

CODE
<head>
<base href="https://www.my_company.com/wp-content/uploads/2021/folder_where_Soundclips_are_stored"
</head>


Meanwhile, I can author my article and insert soundclip paths as follows (knowing that they will all be correctly identified as soon as the <base> URL is known):

CODE
<body>
<audio controls="controls" src="/soundclip 1.mp3">
</audio>
.
some_text_will_go_here.
.
.
.

<audio controls="controls" src="/soundclip 2.mp3">
</audio>
.
some_text_will_go_here
.
.
.
.
<audio controls="controls" src="/soundclip 3.mp3">
</audio>
.
some_text_will_go_here
.
.
</body>


BUT...the images will still be referenced using a full URL, because that's how WordPress stores them.

So my question is: will setting a <base> path for my audio clips interfere with WordPress's identification of images, or will the discrete image URLs override the <base> tag? And, if so, will I need to re-define the <base> tag every time I want to insert an audio clip?

I hope you can understand my problem, and I look forward to an answer from someone who knows about this stuff!

Thank you very much for your time.

Regards,

Miles

This post has been edited by miles_muso: Jan 22 2021, 10:45 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 7th May 2024 - 03:42 PM