Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter PickleEater

    (@pickleeater)

    Thank you for your helpful response which has guided me to what I believe to be a generally universal solution.

    Apologies – the correct URL is https://mbwp.org.uk/ml

    It’s only basic when you already know the answer and I hadn’t found the answer on Google, w3Schools or www.remarpro.com in two days of searching and trying out a wide range of possible solutions – none of which appeared to work for me.

    The solution that I have finally applied involved pasting the following code into the Additional CSS section of the child theme (under Customise or Appearance|Edit CSS:

    #page {background-color: transparent;}
    #page {text-shadow: 1px 1px #fff;}

    In WordPress themes The default background colour appears to be white.

    The above solution firstly makes the background of every page of the site transparent. This is not a problem when there is nothing else “behind” the page elements that you want to show through.

    My client wants a video to show through on the home page only and the first line of CSS facilitates this by making the page background-color transparent (on every page). Being that the video is only on the Home page then no other page is visibly affected.

    Of course, there is also text on the Home page which the client wants to be overlayed on top of the video and the page content to scroll whilst the video continues to play but remains static. This is effected by the second line of CSS.

    Setting the page text shadow to #fff (white) with an offset of 1px right and 1px down makes the black text visible over the video and, again, this has no visible impact on any other page.

    Finally I made the page text bold just to make it stand out a little more. I’ve left the footer text in its original form.

    For those less experienced, it is vital to make such changes to a child theme, as if a parent (i.e. downloadable theme) is used then the changes will be lost if that original theme is updated (which is a frequent occurrence).

    Of all the possible solutions to this query I believe that this solution is about as simple and elegant as it gets other than explicitly to include the page-ID.

    I have resolved this as follows: –

    In the functions.php file for the child theme I have added the following code: –

    function my_myme_types($mime_types){
    $mime_types[‘gpx’] = ‘map/gpx’; //Adding gpx extension
    return $mime_types;
    }

    add_filter(‘upload_mimes’, ‘my_myme_types’, 1, 1);

    This enables Add Media to accept the file upload.

    In the hyperlink on the page I have included the following (this is an link to the code example on w3schools): –

    https://www.w3schools.com/tags/att_a_download.asp

    The download attribute sends the file to the requester as a file rather than opening it in a browser.

    I’m something of a novice at tweaking WordPress. I have a .gpx file stored in the following location: –

    wp-content/uploads/2016/03/mygpxfile.gpx

    It wouldn’t upload using the Add Media button so I logged into my domain and, using its file manager, established to where files were uploaded and did it outside WordPress.

    My first question is where do I look and what do I change to get Add Media to add .gpx files?

    My second question is where do I look and what do I do to get WordPress to send the .gpx to the user rather than displaying it in a browser tab as a string of data?

    Please assume that you are spoon feeding an imbecile, if you will, and you won’t be far off the mark.

    Thank you.

    Thread Starter PickleEater

    (@pickleeater)

    Oakey dokey.

    I’ll have to get into this in a bit more detail.

    Thread Starter PickleEater

    (@pickleeater)

    Hmmm…

    Can’t help thinking that the database records for posts are becoming corrupt (for whatever reason) and that changing the permalinks rewrites the records.

    One for the knowledgebase!

    Many thanks for your help.

    Thread Starter PickleEater

    (@pickleeater)

    Weird! I switched to default permalinks and everything worked again. I’ve switched back again and it’s still working.

    Is there a known reason for this (it would be difficult to explain an unknown reason!) ??

    Thank you.

    Thread Starter PickleEater

    (@pickleeater)

    Ah yes! Child Themes. I’ll have to have a look at the theme to see if I created a child theme or if I was a silly boy! I hope the former. I’ll also check the permalinks to see if that fixes things or not.

    I’ll be back!

    Thread Starter PickleEater

    (@pickleeater)

    Worked out how to do it now and have tweaked header.php so the menu is beneath the banner image.

    Thread Starter PickleEater

    (@pickleeater)

    A rhetorical answer…

    Just pasted the code into header.php and it works perfectly. The code example is specific to one mailing list on the domain.

    I’m sure it will also work on child pages but I’ve yet to study this aspect in detail.

    Thread Starter PickleEater

    (@pickleeater)

    Thank you for these suggestions which I’ll study in detail.

    I did a search of plugins as well and found a range of plugins which offer a variety of options in respect of sticky posts.

    Thread Starter PickleEater

    (@pickleeater)

    Many thanks.

    I’ll study the references, reverting if I cannot work through to a solution.

Viewing 11 replies - 1 through 11 (of 11 total)