add a custom row like via or Source name in Posts

Posted in: Newspaper
Post count: 55

Hello!

Is it poosible to add a custom single row in the Posts on the Post Settings-Block? And which file must be edited?

Thanks

Post count: 23312

Hello Marcus_S,

If you want to add more sources, check the following link here -> https://forum.tagdiv.com/topic/how-to-add-more-than-just-one-source/

Thanks for the message!

Post count: 55

Thanks for your Answer.

I have now adjusted the files accordingly.

For an article (https://salzsau-panorama.de/2017/03/26/termine-fuer-bleckeder-osterfeuer-2017/) it is also displayed accordingly (the copyright field). But with two others this is not the case. Example: https://salzsau-panorama.de/2017/03/23/arbeitgeberverband-sucht-die-besten-firmen/

I can’t find the Mistake.

Have you an idea, what can be the reason?

Post count: 55

Additional information: I use a Child-Theme

Post count: 20688

Hi,

I am assuming you have done both the modifications in the child theme or the main theme, and if it works properly for some posts and for others not, maybe it is a caching issue. Try clearing any caching installed, and purge CD files then check to see if everything is working properly after this.

Thanks

Post count: 55

Hello!

What is meant by CD?

In the appendix I have uploaded the two edited files. Have I somewhere a mistake overlooked?

Here is the section of the file td set post settings

And here a section of the file td module post single base

I have cleared the WordPress- and the Browser-Cache

  • This reply was modified 9 years by Marcus_S.
  • This reply was modified 9 years by Marcus_S.
  • This reply was modified 9 years by Marcus_S.
Post count: 55

I mean the copyright-section

Post count: 55

I changed from the child theme to the parent theme, synonymous there the specification from the copyright field is not displayed, despite Ctrl + F5 and delete the WordPress cache

Post count: 20688

Hi,

It seems additional steps are needed to achieve this. Please follow these steps carefully and it should work properly. These are the required modifications to the td_set_post_settings.php file
https://www.screencast.com/t/nVhkfVM4rs
And these to the td_module_single_base.php file
https://www.screencast.com/t/yUMSibvbSG
If you follow these exactly like described, it should work as intended for you as well
https://www.screencast.com/t/rK8CfZ0h

Thanks

Post count: 55

Hello,

Thanks for Your Answer.

Is the folder and file structure for the files in the child theme correct, or do I need to add other files to the folders?

File structure for Module-single-base.php

File structure for set-post-setting.php

Post count: 20688

Hi,

I have made the test by modifying the files from the main theme, the child theme currently supports only the td_module_single_base.php file to be used in it – https://www.screencast.com/t/x1OctTrbhttps://forum.tagdiv.com/the-child-theme-support-tutorial/
I should have mentioned this earlier, I am very sorry.
You could use only this file in the child theme and create a directory path similar to the main theme for it
https://www.screencast.com/t/Ys9NOduYS6 and use the other file from the main theme. Or just use the main files all together. As it currently is you will have to make these modifications after every update, for one file or both of them.

Thanks

Post count: 55

Now it Works!

Thanks you for the support and no reason to apologize;) We are all human beings

Post count: 55

One more question:

If there is a link in the copyright field Url, what should be the frontend?

Because the link goes through the # sign to the beginning of the article, but does not link to the entered page

Post count: 20688

Hi,

Please make sure you have done the modifications exactly like in the screenshots above. If the links do not come as entered please check here – https://www.screencast.com/t/Aadz8ORGX
I have tested this and it works properly, you can try to double check all the code maybe something was overlooked.

Thanks

Post count: 55

Thanks and sorry!

I forgot to change the source_url to copyright_url in the line

$copyright_url = $this->td_post_theme_settings['td_copyright_url'];

Viewing 15 posts - 1 through 15 (of 15 total)
The forum ‘Newspaper’ is closed to new topics and replies.