I am new to blogdown and haven't done any other work with website creation so apologies if this stuff seems really beginner level!
I have defined the title of my blog in config.toml and I've saved my favicon image in my static directory as favicon.ico. When my blog is opened, the tab shows the right icon and title. Great!
The problem is that when I copy a link to a post in a way that shows a preview, sometimes the favicon and title will default to the theme's standard ones - so simply 'Title' and the hyde-hyde favicon. The behaviour varies a little - for e.g. in slack, both these things are back to the example, whereas in Whatsapp, it seems to keep my post's title but not the favicon.
I've tried using this answer, which is how I got the favicon working in my tab, but I still have the issue with the post previews. I haven't been able to work out the second option as I don't know where the element is in the hyde-hyde theme.
Can anybody tell me how to fix this across platforms?
I'm not sure how one would make a reproducible example of this, but if there is specific stuff (like code from certain files or more info) that would be useful let me know and I'll provide it.
Related
My WordPress website takes a lot of time to load pages, a problem that many of us face. I used GT metrix to check my WordPress page and then checked my website waterfall.
One thing I saw taking more than half time of my page is an image which is not uploaded in my website.
check this image of gt metrix waterfall:
I checked it, and I found this is an image which I have not used in my entire webpage. Also I could not find where is this image used.
Same thing happens in different pages that has different images to it.
I deleted one image from my media but now when I check the GT metrix waterfall I get a 404 error code which means its still trying to load that image and I cannot find it.
This is a theme which I had purchased and its not a popular theme like divi or ocean and hence could not contact the support.
How to check where a particular image is used in my webpage using
the media library (can I do that?)
How to find out and remove this image? Or at least is there a way where I can delete the image from the library and hence my webpage should not look for this image wasting its time instead of getting a 404 code
Your problem is quite common indeed, for your specific case i can suggest by starting to search the image name in both code + DB, it MUST be somewhere.
If you cannot find it inside your stuff there's only one answer left: there's some JS third party script that is loading that for you, but in this case i seriously dubt it would be in the same domain as your site.
Using the media library there's not much you can understand, if you are VERY lucky it will have a message like "attached to" but that thing cover like 10% of the cases, most of the time the image ARE used but are not attached to anything like a post, so the media library won't tell you anything
I've had this happen before a few times, too. Isn't it frustrating!? If you could provide a URL, I (and others, I'm sure) would be happy to take a look and try to figure out what's going on. :)
I'm just playing about with an offline copy of Concrete5 and was wondering if there is any way to link blocks to the composer system to make them work? I made a page template hoping I could just click 'new page' and select my template to add it to the right area of my test site, but it won't show up. I then tried to edit a preset page template from my theme, and that worked fine... except it still populates the new page with the original blocks.
It seems like a total nightmare to do anything in this system. Should I be using a different one if I can't even do this?
I am not sure I fully understand your question but have you had a look at this tutorial? It might help https://documentation.concrete5.org/tutorials/setup-a-simple-blog-within-concrete-5-7
I am using R blogdown with the hugo-academic theme and love Yihui's work (and naturally the theme).
I inserted acidemicons in a post using the icon package (https://github.com/ropenscilabs/icon), e.g.,
- [Mendeley `r icon::ai("mendeley")`](https://www.mendeley.com)
Unfortunately, this somehow clashes with the icons in the share header (only the envelope/email icon shows up and the remaining do not, i.e., twitter, facebook and linkedin). In other posts with no icon::ai() calls the header is fine.
Here is the post with the call (note the share icons at the top right are greyed out)
https://racinejs.netlify.com/post/academic-networks-public-profiles/
Here is a post without (note the share icons at the top right are well formed)
https://racinejs.netlify.com/post/github-education-and-private-repositories/
So, I am guessing there is an alternate way to include the academicons in the R blogdown/R markdown post that does not rely on the icon package, but my unfamiliarity with this framework is working against me. I have been unable to dig up any other way of successfully doing this hence my post.
The GitHub repository for the site can be found at https://github.com/JeffreyRacine/static-hugo-site in case this is helpful.
So, if by chance you know the proper way to do this I would be most grateful.
Thanks in advance for your efforts and suggestions!
In case this helps others, after all that some experimenting and looking at the theme code revealed that
<i class="ai ai-mendeley"></i>
is all that is needed and resolves the issue.
Here is the site that I am working on.
http://afinderskeeper.com/
Here is an example of the logo image that I want at the top
http://afinderskeeper.com/?attachment_id=64
The theme is mayashop, and I am having issues with the images loading. In the media library I am able to see all the images. In the theme options menu in the backend, it asks me to enter the url of the logo image/ favicon/ etc. into the text field. So for the logo, I am simply pasting that second url from above, save, but I still get the placeholder box, not even the correct size.
I was having a redirect issue earlier and couldn't even view any of the images.
It just kept taking a while to load and coming up with a redirect loop. I found online someone had switched the permalink, so I switched mine from "month and name" to "default" and now I can at least see the images on the second link, but I still cannot figure out why they don't show up in the proper places. I hope this makes sense.
I will also mention that I don't really know any php so if this is what it takes, please be very specific for me, thanks!
You're using the wrong urls for the header image and, possibly, the other images that are giving you trouble as well. Instead of referencing http://afinderskeeper.com/?attachment_id=64, you want to edit that image from the media library and get the file url. It will be something like http://afinderskeeper.com/wp-content/uploads/2014/02/afk_header_logo.jpg
I am just a random stranger on the internet, but I have to thank you guys! Your solution fixed a problem on my site that has bugged me for ages!
I've just finished creating a new custom theme based on the underscores framework, and It's ended up breaking my current wordpress installation after applying it.
Although everything is running fine on the front end, the back end is running really weird.
The following issues have presented themselves:
Trying to add a new post (either regular, or one of the new custom post types I've defined) just results in a blank page. Although the post has been created, the admin section gets stuck on the wp-admin/post.php page.
My media library no longer shows up in the media browser. Although all 6,000+ images are still there, none show up.
When logged in, it takes ages for the page to load in the Wordpress admin bar, as it appears it can no longer display the site stats (it just shows the broken image icon after it's finally finished loading in, when the new theme is selected).
I've tried to refresh the permalinks, but this hasn't worked.
Any ideas? I was hoping to re-launch my website today, but it looks like I might have to put it on hold...
Get ahold of the devs for your framework. Your experience is not an uncommon one. It has happened to my sites several times. Unless you want to tweak the php yourself, they will have to help you.
Managed to sort this out. Turns out a function I had written to add a custom field to menu items broke the entire back end. Thanks for the help everyone!