Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
rdiv
tagDiv Member

Thank you for your advice, it was helpful. Finaly I used “template_data_array[‘atts’][‘category_id’]” to get category_id and then “get_category_link() function”.

Everything works fine, except proper text color of my new ‘a’ elements (“See all news in category”).
I need correspondent colors for whole block (like in the screenshot). The color value for each block is taken from block settings.

So I would like to modify the code that overwrite default blocks colors elements (like block title background, border color etc., the rules are in: /themes/Newspapers/style.css) with new colors appropriate for current block. I want this code to be able to wrap also my ‘a’ element.

In which Newspaper theme file can I find the code responsible for overwritting colors in Blocks?

Screenshot:
http://pasteboard.co/cUGUQAEvf.png

or
http://www1.zippyshare.com/v/tXAppOng/file.html

Regards!

  • This reply was modified 9 years by rdiv.
  • This reply was modified 9 years by rdiv.
  • This reply was modified 9 years by rdiv.
rdiv
tagDiv Member

Hello,

thanks for Your reply. I don’t want to change the category URL. I just want to get url of current post category that is displayed in “td_block_1” module (as you can see in the screenshot). It’s a small theme modification (I use Newspaper child theme).
After clicking on the link ‘See all news in category’ I want to open current category template (it’s default category wordpress template, it’s also built-in Newspaper theme).
In the Newspaper theme there is a function called ‘get_block_title’ that shows the category title (see in the screenshot)
I need to use a similar function, like ‘get_block_current_category_url’. Maybe it is already built-in the Newspaper theme? Or can You give me some advices how to add something like this?

Screenshot:
http://www2.zippyshare.com/v/sKn6nxaB/file.html

Regards!

  • This reply was modified 9 years by rdiv.
rdiv
tagDiv Member

Hello,
I want to get url of current post category that is displayed in “td_block_1” module (as you can see in the screenshot). It’s a small theme modification.
After clicking on the link ‘See all news in category’ I want to open current category template (it’s default category wordpress template, it’s also built-in Newspaper theme).
There is a function ‘get_block_title’ that shows the category title.
I need to write (unless it is already built-in the Newspaper theme) a similar function, like ‘get_block_category_url’. Can you help me?

Screenshot:
http://www2.zippyshare.com/v/sKn6nxaB/file.html

Regards!

Viewing 3 posts - 1 through 3 (of 3 total)