Moving author box URL to below description

Posted in: Newsmag
Post count: 9544

Hi, folks
before I go messing with this, what would best way to revise this to put the author URL *below* the description, above author socials in /page-author-box.php

        if (!empty($part_cur_auth_obj->user_url)) {
            echo '<div class="td-author-url"><a>user_url) . '">' . esc_url($part_cur_auth_obj->user_url) . '</a></div>';
        } printf( '%1$s', $part_cur_auth_obj->description );
  • This topic was modified 1 year by simchris.
Post count: 20685

Hi,

That will require moving the author URL code https://prnt.sc/AkM0ZLc5zHiu below the description code https://prnt.sc/oHfLtigxnABF -> https://prnt.sc/APbA6zMFiA1A

But it could also be done with some CSS, something like this would work https://pastebin.com/MgYe0aG8 -> https://prnt.sc/7LrO1tuHTCpF And maybe this is the better solution, as it won’t require modifying that php file.

Thank you!

Post count: 9544

Thanks. That workes. I’d almost go so far as suggest making this the normal layout.

I’m already editing the file to remove number of articles and comments, since we don’t have comments on the site, that is redundant. Been annoying me for years. So, fixing with the latest NW update. 🙂

Thanks!!

Post count: 20685

Having options for customizing the author box would be great indeed. For author pages/templates it is possible with Newspaper, where each element of the author box is separate in the composer https://prnt.sc/cRDUDJn14qzQ So you can use what you want, in any order.

With Newsmag it’s not possible in the same way. It will either have to be modified in the code, or with CSS. If it can be done with CSS, like hiding certain elements or changing their order, then in my opinion it’s easier to use CSS. At least you won’t have to keep making the modifications all over again after an update or reinstall. It doesn’t work for everything however.

If there’s something else that I can help with, please let me know at any time.

Thank you!

Post count: 20685

Having options for customizing the author box would be great indeed. For author pages/templates it is possible with Newspaper, where each element of the author box is separate in the composer https://prnt.sc/cRDUDJn14qzQ So you can use what you want, in any order.

With Newsmag it’s not possible in the same way. It will either have to be modified in the code, or with CSS. If it can be done with CSS, like hiding certain elements or changing their order, then in my opinion it’s easier to use CSS. At least you won’t have to keep making the modifications all over again after an update or reinstall. It doesn’t work for everything however.

If there’s something else that I can help with, please let me know at any time.

Thank you!

Post count: 9544

It’s no prob to change the php file(s), We have to change a number of things each time anyway, like removing the images from the search box, and changing the ‘views’ field, since many of our sites way pre-date tagdiv themes, we have existing views field as ‘views’ so don’t want two different fields for that, so always have to change that on updates. We use a number of tags and categories per story, so I move those to bottom vs above headline as it becomes a mess if something is in, say, entertainment, books, California, Los Angeles, Featured …. too many pill boxes. 🙂

NO worries. Most things CSS does the trick. But a few things, no trouble editing files as long as I keep a “map” of that.

Actually — compared to the ooooooold code base, actually easier now. v5 was refactored a bit better than v3. 🙂

Thanks again!

Chris

Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.