Jump to content

Archived

This topic is now archived and is closed to further replies.

quinntinm

Blog layout and removing the featured image link

Recommended Posts

quinntinm

Hello.

 

I have 2 questions on the blog.

 

Q1:

How do i remove the link on the featured image that is automatically displayed in the blog post above the copy.

I like it added automatically, but don't want the link.

Do i have to do it in the source code in the template file?

If so, what page must i duplicate and add to my child theme and where do i edit that code?

 

 

Q2:

When it comes to blog post layouts, DMS seems to be very inflexible which is a real pity. You cannot change the layouts at all - do i have this wrong, is there a way?

How do you solve this issue if you want to have something different for the layout of your blog posts?

 

 

Thank you.

 

Share this post


Link to post
Share on other sites
Danny

HI,

 

1. You can use CSS to remove the URL from the featured image of a post. If you provide a link to the site in question, we can assist you further. Also, if you prefer not to use CSS, you will want to ask this question on the WordPress support forums, as it is regarding a WordPress feature.

 

2. Not sure what you mean by inflexible. Nearly all websites display their blogs in a list format and DMS is no different. If you want to create a unique layout for your blog posts, then you will need to either create your own sections, use the legacy option and select Magazine mode or finally use a plugin. I would recommend creating your own section.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
quinntinm

Hi Danny, thanks for the reply.

 

The site is currently in maintenance mode, so please use this link (academypostproduction.com/showmethemoney) and then you can go to the blog article about the tuscan skies.

 

Regarding the legacy option - i liked the flexibility it offered with regards the magazine style layout if you wanted to use it.

In the new DMS though i was under the impression it was not a good idea to use this?

In the area where it mentions the use of the Legacy option it says "...upgrading. Unsupported in future releases...."

And this would obviously be a problem :-)

 

Thanks.

Share this post


Link to post
Share on other sites
quinntinm

One more thing Danny, are there any examples of what people have done with regards to creating their own sections - would be interesting to see what others have done using DMS.

Share this post


Link to post
Share on other sites
quinntinm

Hi Danny.

I do think this is a pagelines thing - there are no page templates in the DMS folder, so i looked into the folders and saw in the "Includes" folder there was a file called "lib.posts.php"

on line 117 the following appears and it looks a lot like what i would assume would be the code to display the featured image link on the page.

// STANDARD THUMB
	elseif ( has_post_thumbnail() ) {
		
		 $media = sprintf('<a class="post-thumbnail-link" href="%s">%s</a>', get_permalink(), get_the_post_thumbnail( $args['id'], $args['thumb-size'], array('title' => ''))); 
		

Please can you ask the guys to check and confirm what i need to do to remove the featured image link from the blog page.

I am happy with the image being inserted, i just don't want the link.

 

Thank you.

Share this post


Link to post
Share on other sites
Danny

WordPress automatically displays Featured Images with a URL. I have never encountered any theme that does otherwise. Therefore, it is a WordPress issue so if you want to remove the featured image, you can either edit that file if you like and void all support, ask your question on the WordPress support forums and see if there is a filter or hook you can use or use CSS to remove the link using:

 

.my-class {

pointer-events: none;
cursor: default;
}

Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • Lisa Haran
      By Lisa Haran
      Hi 
      I have a map here http://www.iloveoffset.com/maps/
      I want to add several pointer locations to the map, but when I do they do not appear.
      On this map there are 2 pointer locations and as you can there is only one visible.
      Earlier today I added 7 and could only see 4 so there is something odd going on.
      My theme is up to date
    • clj182
      By clj182+
      Hello,
      I've been having trouble unlocking the template section for past couple of weeks. When I try clicking nothing happens. 
      I've deleted my custom css and removed plugins. Im down to having only the following plugins:
      Akismet
      Contact Form 7
      DMS Professional Tools
      Pagelines Updater
      WooCommerce
      It was working fine before i have no idea what's going on with it.
    • flourishdesignstudio
      By flourishdesignstudio+
      My DMS 2 site http://www.heart-stone.com/ will not save any new custom css... I can still edit templates and publish those but any custom css that I enter never saves.
      All WP files, themes, and plugins are up to date. 
      Any thought about what might be causing this?
    • flourishdesignstudio
      By flourishdesignstudio+
      Is there a way to edit the custom CSS via FTP? I know I can edit the custom code in the Chrome editor but is there a file path I can use to find and edit the CSS directly from our FTP?
      Thanks in advance for the help!
    • nizami
      By nizami+
      Using navbar section with correctly configured WP menu to display main navigation at https://elenaangel.com. 
      All fine in desktop viewport. Menu displays twice in hamburger mode. How to fix this please? 

×