Okay
  Public Ticket #2462079
Post Type Gallery
Closed

Comments

  •  6
    nuraugen started the conversation

    Hi,

    just wanted to let you know:
    if I make a new post and set its type to gallery, the images in the head section gallery in my post use https://www.myurl.com/thepathto/myimage.jpg as default for me.
    I noticed this because I was running my website as https://www.myurl.com/thepathto/myimage.jpg and have now converted that to https://myurl.com/thepathto/myimage.jpg.

    Is there any way you can adjust the theme so that it would respect the setting that I put in my wordpress website settings in

    settings/general: wordpress address (url) and
    settings/general: website address (url)

    Or is this a problem specific to my site?

    I have already checked my database with a plugin that searches for the term:

    https://www.myurl.com
    and replaces it with
    https://myurl.com

    I also replaced every instance of 
    http://www.myurl.com
    with
    https://myurl.com

    so I'm pretty sure this is hardcoded in the Kalium theme.

    Thanks!

  •  6
    nuraugen replied

    I'm unsure if I was clear enough, so let me add this:
    I removed the www. from my urls but when I choose post type gallery, the gallery images are still addressed as 

    https://www.myurl.com/thepathto/myimage.jpg

    instead of 

    https://myurl.com/thepathto/myimage.jpg

    and I suspect this is hardcoded into the theme. I'd appreciate if you could change it so it follows my settings/general: wordpress adress (url) in a way that the images are being addressed the way that I enter my url there.

    It would be important for SEO purposes to have this setting used coherently across the whole website, since google sees www.myurl.com and myurl.com as two different domains. To avoid this I changed from using www. to leaving it out of the domain. Now everything is properly addressed as https://myurl.com/pathtomycontents/ except the images that are used in posts that are gallery type.
    I hope this helps understanding my issue.

  • [deleted] replied

    Hi nuraugen,

    I understand the issue here, however our theme doesn't handle the upload and processing of media images. It simply parses them with Core WordPress functions such as wp_get_attachment_image and wp_get_attachment_image_src, so Kalium doesn't change the output URL of images. It would be pointless if it did, because we have thousands of clients with variety of URL formats (ip, subdomain.domain, domain/path) and this way it would break customers website.

    If you can give me your WP credentials I can check where is the issue and inform you about any possible fix.

  •  6
    nuraugen replied

    I kind of understand. But where is the url stored? I searched

    http://www.myurl.com

    and replaced to

    https://myurl.com

    in my whole database and yet www.myurl is still appearing in the gallery to link to the image.
    Where is this coming from? Is it written into the image file itself?
    Also, why are only images from Kalium themes gallery post type affected?
    Correction: if I chose "Columned" as Portfolio Item type, the head image link is also referenced as "www."

    See my Modefotografie link.
    The top image links to

    https://www.myurl.com/pathto/myimage.jpg

    but the images from the gallery below correctly link to

    https://myurl.com/pathto/myimage.jpg

    The latter is working as expected after the replacement of the url in my database. The former can't be changed in the database, so it has to be generated somehow.

    The element in question is a.nivo

    <a href="https://www.constantinflux.com/wp-content/uploads/2018/09/Constantin-Flux-Fotografie-Niederrhein-Fashionphotography-Modefotografie-Geldern-Nana-Chuto-Unbound-046.jpg" class="nivo" data-lightbox-gallery="post-gallery">
    

    Any idea without having access to the backend?

  • [deleted] replied

    Hi nuraugen,

    The only place where the WordPress data is stored is database. There could be a plugin automatically appending "www." to image URLs even though your database is clear so in this case make sure plugins are disabled.

    I can check it for you and see if I can fix the issue, but I need to login to you admin panel because there is no other way I can troubleshoot this issue.

    To include your credentials click Insert Credentials button in editor toolbar. (See how)